Hi Loys,
There's definitely bug with the message you get from the "submit-job --block" and we will open a ticket for this - wait-for-job does not exist it was replaced with wait-job-events long time ago.
For using it, you need to enable event notification on your server first. Please follow these instructions:
https://staging.validation.linaro.org/static/docs/v2/advanced-installation.h...
After that, using lava-tool, you can either submit and wait for the job events or track the events of the existing job. Example you provided is good for the latter example.
To submit and wait you can use: lava-tool wait-job-events --job-definition /path/to/job.yaml http://your.server/RPC2/
In either case, lava-tool should exit when it receives job 'completed' event from the server.
HTH,
On 12/13/2017 02:54 PM, Loys Ollivier wrote:
Hello everyone,
I am using lava-tool to monitor my jobs. Previously I used: $ lava-tool submit-job --block
Using version of lava-tool 0.23 I now have this message: --> This kind of polling is deprecated and will be removed in the next release. Please use "wait-for-job" command.
But "wait-for-job" doesn't exist. There is a "wait-job-events" option though. I tried this one and it doesn't return even once the job has finished. If I manually stop it and restart it with the same job number I get as output: --> Job already finished with status Complete.
Command I'm using: $ lava-tool wait-job-events --job-id 20 http://user@lava-server
Is there anything I'm doing incorrectly ? Or are you aware of this bug ?
Thanks !
-- Loys OLLIVIER
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users