Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-job timeout? #484

Open
Arseniy-Popov opened this issue Apr 5, 2024 · 1 comment
Open

Per-job timeout? #484

Arseniy-Popov opened this issue Apr 5, 2024 · 1 comment

Comments

@Arseniy-Popov
Copy link

Arseniy-Popov commented Apr 5, 2024

Would you consider adding a per-job timeout? How long a job is allowed to remain in the active state. This library seems like the place to put it.

@Dreamsorcerer
Copy link
Member

Dreamsorcerer commented Apr 5, 2024

I don't think there's any timeout here, is there? To create a timeout for a particular job, just wrap the task in a timeout.

At the very simplest, I think you can just pass asyncio.wait_for(my_task(), timeout), instead of my_task() directly.

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

No branches or pull requests

2 participants