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

Cron jobs timeout after 300 seconds when timeout=None #465

Open
Graeme22 opened this issue Jun 20, 2024 · 0 comments
Open

Cron jobs timeout after 300 seconds when timeout=None #465

Graeme22 opened this issue Jun 20, 2024 · 0 comments

Comments

@Graeme22
Copy link

Given the following settings:

async def long_job(ctx):
    # simulate job that takes a long time
    await asyncio.sleep(3600)


class WorkerSettings:
    cron_jobs = [
        cron(long_job, run_at_startup=True)
    ]
    # ...

the job times out after 300 seconds with TimeoutError, even though the timeout is None, which is the default for cron jobs.
I believe the culprit is this line, which replaces the None value although None may be desired.

If desired I can submit a PR.

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

1 participant