We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2e61b commit dc980b5Copy full SHA for dc980b5
scheduler/redis_models/job.py
@@ -217,7 +217,8 @@ def create(
217
if name is not None and JobModel.exists(name, connection=connection):
218
raise ValueError(f"Job with name {name} already exists")
219
if name is None:
220
- name = f"{queue_name}:{scheduled_task_id or ''}:{utils.utcnow().strftime("%Y%m%d%H%M%S%f")}"
+ date_str = utils.utcnow().strftime("%Y%m%d%H%M%S%f")
221
+ name = f"{queue_name}:{scheduled_task_id or ''}:{date_str}"
222
223
if inspect.ismethod(func):
224
_func_name = func.__name__
0 commit comments