Sleep Scheduler: reconsider what happens when schedule is inactive #99886

Open
opened 2022-07-21 12:48:37 +02:00 by Sybren A. Stüvel · 2 comments

At the moment, when a Worker has an inactive sleep schedue, the Sleep Scheduler will reply awake when queried for the desired Worker status. This behaviour could be seen as overstepping the responsibilities of the Sleep Scheduler.

It might be a better design to let the Sleep Scheduler return an empty string instead, indicating "I don't have anything to say about this Worker". Then the caller could make up its own mind about what to do with the Worker.

At the moment, when a Worker has an inactive sleep schedue, the Sleep Scheduler will reply `awake` when queried for the desired Worker status. This behaviour could be seen as overstepping the responsibilities of the Sleep Scheduler. It might be a better design to let the Sleep Scheduler return an empty string instead, indicating "I don't have anything to say about this Worker". Then the caller could make up its own mind about what to do with the Worker.
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:11:09 +01:00
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#99886
No description provided.