Show web-UI-determined result within logs
So far the log of a job with the result "parallel_failed" looks like this:
[2020-06-08T21:09:14.0989 CEST] [info] Isotovideo exit status: 0 [2020-06-08T21:09:19.0989 CEST] [info] +++ worker notes +++ [2020-06-08T21:09:19.0989 CEST] [info] End time: 2020-06-08 19:09:19 [2020-06-08T21:09:19.0990 CEST] [info] Result: cancel
It isn't clear why the job has been stopped.
AC1: The real job result is logged instead of "cancel". In this case it would be "parallel_failed" but it could also be "parallel_restarted" or any result which is determined on the web UI side.
Pass the job result set by the web UI to worker when sending the command to stop the job. The worker can then take it into account when writing the log.