Skip to content

Commit

Permalink
Merge pull request #184 from Tivix/nerjan/change_lock_naming_to_modul…
Browse files Browse the repository at this point in the history
…e_and_class_name

name locks by module_name.class_name for higher distinction
  • Loading branch information
JedrzejMaluszczak authored May 6, 2022
2 parents c439c6a + 4f58228 commit 70d8ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_cron/backends/lock/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, cron_class, silent, *args, **kwargs):
* self.silent
for you. The rest is backend-specific.
"""
self.job_name = cron_class.__name__
self.job_name = '.'.join([cron_class.__module__, cron_class.__name__])
self.job_code = cron_class.code
self.parallel = getattr(cron_class, 'ALLOW_PARALLEL_RUNS', False)
self.silent = silent
Expand Down

0 comments on commit 70d8ba6

Please sign in to comment.