Skip to content

Add paused_by information to ActiveTasks - #32

Merged
jonipol merged 4 commits into
feat/pausingfrom
paused-by-data
Sep 15, 2026
Merged

jonipol merged 4 commits into
feat/pausingfrom
paused-by-data

Conversation

@jonipol

@jonipol jonipol commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Paused_by field can tell "who" or "why" the task has been paused. This information is to be provided by the client calling the pause task. Resume task automatically clears this field.

Not super happy with the current state, but maybe we can find some way to make this all nicer on the last refactors before the pausing feature is finally merged to main... Unless reviewers here come up with great ideas.

@jonipol jonipol self-assigned this Sep 14, 2026

@tanelikor tanelikor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Agreed, its a bit ugly to have some argument lists grow this much and needing to pass the information through multiple layers, but I can't quickly think of a better solution for now. The proper solution would be to refactor this so that we don't need to pass these operations via ActiveTasks (have it function only as a tracker and not an operator) like we discussed last week, but that is better done as a separate refactor (and needs some more careful planning).

Comment thread task_manager/task_manager/tasks/composite_resolution.py

@lowellausen lowellausen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jonipol
jonipol merged commit 148a969 into feat/pausing Sep 15, 2026
1 check passed
@jonipol
jonipol deleted the paused-by-data branch September 15, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants