Worker interaction with debusine server while executing a task
Just for discussion and as a heads up for current design limitations (let's open specific tickets if needed):
The Worker runs the task via Sbuild.execute
and it does subprocess.check_call
in the worker-only thread.
This design has some limitations:
- The worker cannot send any information regarding the progress of the job
- The Debusine server cannot request a cancellation of the job
For a milestone after the first one should the design be changed and features such as the following, added:
- Be able to cancel the task execution (via debusine admin command?)
- Should the worker send some progress? What type of progress? (all the stdout/stderr?)