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

Problem with periodic task setup #67

Open
martenj opened this issue Nov 4, 2021 · 0 comments
Open

Problem with periodic task setup #67

martenj opened this issue Nov 4, 2021 · 0 comments

Comments

@martenj
Copy link
Contributor

martenj commented Nov 4, 2021

is

@app.on_after_configure.connect
def setup_periodic_tasks(sender, **_kwargs):
    """Register periodic tasks"""
    # Update the error message caches hourly, if necessary.
    sender.add_periodic_task(
        schedule=crontab(minute=11), signature=flowcell_update_outdated_error_caches.s()
    )

should be

@app.on_after_configure.connect
def setup_periodic_tasks(sender, **_kwargs):
    """Register periodic tasks"""
    # Update the error message caches hourly, if necessary.
    sender.add_periodic_task(
        schedule=crontab(minute=11), sig=flowcell_update_outdated_error_caches.s()
    )

(s/signature=/sig=/)

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