Skip to content

Database Locking Backend #114

@msopko81

Description

@msopko81

I believe the default locking backend should be a database backend using django_cron_cronjoblog database table.

When the job is first started, a row could be added into the database table with a start_time and code. This can then be used to prevent parallel runs (if needed). When the job finishes, the end_time, is_success, and message can be updated.

This has the benefit of not requiring the django cache backend. It will also prevent issues when not using the django cache since the default cache backend is local memory and nothing is being used to prevent parallel runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions