Skip to content

Add periodic jobs #259

Description

@bschollnick

Please add some sort of support for periodic jobs... For example:

TASKS = {
"default": {
"BACKEND": "dbtasks.backend.DatabaseBackend",
"OPTIONS": {
# How long to retain ScheduledTasks in the database. Forever if not set.
"retain": datetime.timedelta(days=7),
# Tasks to run periodically.
"periodic": {
# Runs at 3:30am every Monday through Friday.
"myproject.tasks.maintenance": "30 3 * * 1-5",
},
},
},
}

I am currently using a different tasks library, but I have 3 periodic jobs:

        "periodic": {
            "quickbbs.tasks.daily_cleanup_finished_jobs": Periodic("0 0 * * *"),
            "quickbbs.tasks.weekly_vacuum_check": Periodic("0 6 * * 0"),
            "quickbbs.tasks.check_ssl_cert_expiry": Periodic("0 6 * * *"),
        },

And I don't see anyway to duplicate this functionality via django-tasks-db.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions