Skip to content

Commit

Permalink
Facilitate backward compatible changes to the Queue signature (#184)
Browse files Browse the repository at this point in the history
This PR disable positional arguments before the (yet unreleased) `worker_concurrency` parameter
  • Loading branch information
maxdml authored Jan 23, 2025
1 parent 14c7355 commit 0fbe127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbos/_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(
name: str,
concurrency: Optional[int] = None,
limiter: Optional[QueueRateLimit] = None,
*, # Disable positional arguments from here on
worker_concurrency: Optional[int] = None,
) -> None:
if (
Expand Down

0 comments on commit 0fbe127

Please sign in to comment.