Skip to content

is_aborted does not require task_id - #225

Merged
kodiakhq[bot] merged 1 commit into
sbdchd:mainfrom
jgarst:jgarst/is-aborted-signature
Jun 23, 2026
Merged

is_aborted does not require task_id#225
kodiakhq[bot] merged 1 commit into
sbdchd:mainfrom
jgarst:jgarst/is-aborted-signature

Conversation

@jgarst

@jgarst jgarst commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The is_aborted method accepts either no arguments, or a single argument to override the task_id that is being checked. The current type signature correctly describes the second case but not the first.

https://github.com/celery/celery/blob/aef7f130e3ca547c49d3d581a831927458fc1a71/celery/contrib/abortable.py#L147

This is kind of a drive by contribution - I've tried to copy the current testing style, let me know if there are any other conventions that I should be following.

@jgarst
jgarst force-pushed the jgarst/is-aborted-signature branch from bf8d1c3 to 321c2e7 Compare June 23, 2026 02:07
@jgarst
jgarst force-pushed the jgarst/is-aborted-signature branch from 321c2e7 to 405b88a Compare June 23, 2026 02:11
@jgarst

jgarst commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Apologies for the failed test run, I missed some linters. I see everything as passing locally now.

@sbdchd sbdchd left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you!

@sbdchd sbdchd added the automerge auto merge PRs using kodiak label Jun 23, 2026
@kodiakhq
kodiakhq Bot merged commit 707e25a into sbdchd:main Jun 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge auto merge PRs using kodiak

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants