Skip to content

Add allow_parallel to control concurrent task runs#10

Merged
Morry98 merged 2 commits intomainfrom
feature/disable-parallel-tasks
Apr 15, 2026
Merged

Add allow_parallel to control concurrent task runs#10
Morry98 merged 2 commits intomainfrom
feature/disable-parallel-tasks

Conversation

@Morry98
Copy link
Copy Markdown
Owner

@Morry98 Morry98 commented Apr 13, 2026

Summary

Add allow_parallel flag to control whether the same task can run concurrently across multiple instances. The setting follows a cascade resolution: task > task group > global config, defaulting to True (preserving backward compatibility). When set to False, the coordinator checks the Redis running key and skips tasks that are already executing.

Introduce a three-level cascade setting (task > group > config)
that prevents the coordinator from scheduling a task when it is
already running. The check uses the Redis heartbeat key, so it
works across multiple workers.

- Add `allow_parallel` field to Config, TaskGroup, Task, and
  the dynamic task creation API
- Implement cascade resolution in the coordinator
- Update schemas, router services, and tests
- Add documentation and changelog entry
- Bump version to 1.0.1.alpha.1
- Update uv.lock with dependency bumps
@Morry98 Morry98 merged commit f02ed62 into main Apr 15, 2026
10 of 15 checks passed
@Morry98 Morry98 deleted the feature/disable-parallel-tasks branch April 15, 2026 08:47
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.

1 participant