Skip to content

Set a timeout on celery HTTP calls#374

Closed
EhteshamSid wants to merge 1 commit intof213:masterfrom
EhteshamSid:fix/set-a-timeout-on-celery-http-calls
Closed

Set a timeout on celery HTTP calls#374
EhteshamSid wants to merge 1 commit intof213:masterfrom
EhteshamSid:fix/set-a-timeout-on-celery-http-calls

Conversation

@EhteshamSid
Copy link
Copy Markdown

This fell out while I was looking at src/celery.py. Set a timeout on celery HTTP calls. Network calls without a timeout can hang a worker indefinitely. I kept the patch small and re-ran syntax checks after applying it.

src/celery.py Outdated
"message_id": message_id,
"reaction": [{"type": "emoji", "emoji": reaction}],
},
timeout=10.0,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@EhteshamSid, the indent is too big

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed, thanks for catching that!

@EhteshamSid EhteshamSid force-pushed the fix/set-a-timeout-on-celery-http-calls branch from 834b5bd to fc733d7 Compare April 4, 2026 17:22
@EhteshamSid EhteshamSid closed this by deleting the head repository Apr 4, 2026
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