Page 1 of 1

API

Posted: Tue Nov 09, 2021 8:10 am
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

Re: API

Posted: Tue Nov 09, 2021 12:10 pm
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?

Re: API

Posted: Tue Nov 09, 2021 1:28 pm
by mrazik
Hi emcodem,

yes exactly.

Re: API

Posted: Tue Nov 09, 2021 2:50 pm
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

Re: API

Posted: Tue Nov 09, 2021 9:35 pm
by mrazik
Hi emcodem,

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

Cheers,
mrazik