Worker: refactor, remove doneChan field from Worker struct #99414

Closed
opened 2022-07-04 15:29:14 +02:00 by Sybren A. Stüvel · 4 comments

Remove doneChan field from Worker struct, and the handling of that field. Its intended use overlaps with the global context.Context, and thus only one of the two needs to be kept.

Remove `doneChan` field from `Worker` struct, and the handling of that field. Its intended use overlaps with the global `context.Context`, and thus only one of the two needs to be kept.
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
Author
Owner

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Author
Owner

Archiving this task as it doesn't paint the entire picture.
As the Worker changes state, it spawns a new goroutine for that state, then ends the current one. This means there is not a single loop that exits on shutdown, like the task description would suggest.

Archiving this task as it doesn't paint the entire picture. As the Worker changes state, it spawns a new goroutine for that state, then ends the current one. This means there is not a single loop that exits on shutdown, like the task description would suggest.
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#99414
No description provided.