Commit Graph

6 Commits

Author SHA1 Message Date
93a3436495 Add sleep_repeats: 1 to debug-job-echo.sh
Add a `sleep_repeats: 1` setting to `debug-job-echo.sh`. It doesn't change
the behaviour of the job, but it does make it visible that this setting
exists, and that it can be used to generate a large number of tasks.
2022-07-07 10:26:18 +02:00
a61fe3b6ab Update job submission URL in debug shell scripts
Add `/v3/` component introduced in 9daecf2b
2022-07-05 11:53:37 +02:00
0b39f229a1 Implement may-I-keep-running protocol
Worker and Manager implementation of the "may-I-kee-running" protocol.

While running tasks, the Worker will ask the Manager periodically
whether it's still allowed to keep running that task. This allows the
Manager to abort commands on Workers when:

- the Worker should go to another state (typically 'asleep' or
  'shutdown'),
- the task changed status from 'active' to something non-runnable
  (typically 'canceled' when the job as a whole is canceled).
- the task has been assigned to a different Worker. This can happen when
  a Worker loses its connection to its Manager, resulting in a task
  timeout (not yet implemented) after which the task can be assigned to
  another Worker. If then the connectivity is restored, the first Worker
  should abort (last-assigned Worker wins).
2022-05-12 15:06:05 +02:00
def1778aa6 Debug echo job: sleep for a shorter time 2022-04-08 12:05:30 +02:00
0d2ef98edc Debugging: add simple render job script 2022-02-21 19:58:29 +01:00
6043609f90 Little debug script for creating simple test job 2022-02-21 19:47:44 +01:00