Skip to content

Print group callback#769

Open
aequitas wants to merge 1 commit into
Bogdanp:masterfrom
aequitas:group_callback_str
Open

Print group callback#769
aequitas wants to merge 1 commit into
Bogdanp:masterfrom
aequitas:group_callback_str

Conversation

@aequitas

@aequitas aequitas commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

This PR adds group callbacks to the group __str__ function.

>>> import dramatiq
...
... @dramatiq.actor
... def task():
...   pass
...
... group = dramatiq.group([task.message()])
... group.add_completion_callback(task.message())
... print(str(group))
...
group([task()]) -> (task())

@LincolnPuzey

Copy link
Copy Markdown
Collaborator

@aequitas Is there a particular need/reason for this change?

@aequitas

Copy link
Copy Markdown
Contributor Author

I like to visualise generated tasks during debugging and this one was missing.

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.

2 participants