Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1777 | queue should not override
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Mar 27, 2024
1 parent ce4f9ab commit 0ba21fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tasks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def before_start(cls, task_id, args, kwargs, name=None):
task.created_by = UserProfile.objects.filter(username=kwargs.pop('username', None)).first() or task.created_by
task.name = name or task.name
task.state = STARTED
task.queue = kwargs.get('queue', None) or 'default'
task.queue = kwargs.get('queue', None) or task.queue or 'default'
task.args = args
task.kwargs = kwargs
task.started_at = timezone.now()
Expand Down

0 comments on commit 0ba21fc

Please sign in to comment.