Support pausing jobs #99399

Closed
opened 2022-07-04 14:48:30 +02:00 by Sybren A. Stüvel · 3 comments

It should be possible to pause a job, by setting its status to paused.

  • Tasks should not be influenced by this. Any active task should remain active until it's finished. This allows for pausing jobs without losing any render time so far.
  • Once paused, a job can be queued to resume it. Care should be taken to unit test this properly, also with still-active tasks in the mix.

The effect on tasks is what separates paused from cancelled status; cancelled jobs can also be requeued to resume them, but cancellation of the tasks happens immediately.

It should be possible to *pause* a job, by setting its status to `paused`. - Tasks should not be influenced by this. Any `active` task should remain `active` until it's finished. This allows for pausing jobs without losing any render time so far. - Once paused, a job can be `queued` to resume it. Care should be taken to unit test this properly, also with still-`active` tasks in the mix. The effect on tasks is what separates `paused` from `cancelled` status; cancelled jobs can also be requeued to resume them, but cancellation of the tasks happens immediately.
Author
Owner

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Owner

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sybren A. Stüvel added
Type
Design
and removed
Type
Report
labels 2023-02-17 11:17:22 +01:00
David Zhang self-assigned this 2024-05-22 06:51:14 +02:00
Author
Owner

Implemented in #104313

Implemented in #104313
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/flamenco#99399
No description provided.