API

Questions and answers on how to get the most out of FFAStrans
Post Reply
mrazik
Posts: 36
Joined: Sat May 30, 2020 9:48 pm

API

Post by mrazik »

Hi FFAStrans Team,

I don't know if there is a bug or I'm doing something wrong, but when I'm using API control of FFAStrans, there is issue with obtaing job status in some race condition.

API returns no job exists, when the job is moving from running to history.

Many thanks for info,
mrazik
FFAStrans 1.2.2
Webinterface 1.2.0.4
- - - - - - - - - - - - - - - -
Intel Xeon CPU E5-1620 v3 @ 3.5GHz
8.00 GB RAM
NVIDIA Quadro K620
256GB SSD
1GB NIC
- - - - - - - - - - - - - - - -
Windows 10 Pro 64b
emcodem
Posts: 1752
Joined: Wed Sep 19, 2018 8:11 am

Re: API

Post by emcodem »

Hi,

you mean this?

When the job has finished you call:

Code: Select all

http://localhost:65445/api/v2/jobs/20211109-1308-5565-56fe-f2dd182dd3c2
and the response is:

Code: Select all

Invalid resource : "/api/v2/jobs/20211109-1308-5565-56fe-f2dd182dd3c2"
Is this what you do?
emcodem, wrapping since 2009 you got the rhyme?
mrazik
Posts: 36
Joined: Sat May 30, 2020 9:48 pm

Re: API

Post by mrazik »

Hi emcodem,

yes exactly.
FFAStrans 1.2.2
Webinterface 1.2.0.4
- - - - - - - - - - - - - - - -
Intel Xeon CPU E5-1620 v3 @ 3.5GHz
8.00 GB RAM
NVIDIA Quadro K620
256GB SSD
1GB NIC
- - - - - - - - - - - - - - - -
Windows 10 Pro 64b
emcodem
Posts: 1752
Joined: Wed Sep 19, 2018 8:11 am

Re: API

Post by emcodem »

Yeah thats by design.

You can try out the new api which is currently shipped with webinterface only but there are plans about merging old api into new one and make new default.

Overview:
http://localhost:3003/
Get Job Details:
http://localhost:3003/getjobdetails?job ... cea7470e81
emcodem, wrapping since 2009 you got the rhyme?
mrazik
Posts: 36
Joined: Sat May 30, 2020 9:48 pm

Re: API

Post by mrazik »

Hi emcodem,

I'll try that, thank you for the hint.

Cheers,
mrazik
FFAStrans 1.2.2
Webinterface 1.2.0.4
- - - - - - - - - - - - - - - -
Intel Xeon CPU E5-1620 v3 @ 3.5GHz
8.00 GB RAM
NVIDIA Quadro K620
256GB SSD
1GB NIC
- - - - - - - - - - - - - - - -
Windows 10 Pro 64b
Post Reply