Skip to content

Commit

Permalink
Order the task creation by id
Browse files Browse the repository at this point in the history
  • Loading branch information
paopow committed Oct 7, 2020
1 parent e1a90d7 commit b328bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchestra/utils/task_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ def create_subsequent_tasks(project):
The modified project object.
"""
workflow_version = project.workflow_version
all_steps = workflow_version.steps.all()
all_steps = workflow_version.steps.all().order_by('id')

# get all completed tasks associated with a given project
completed_tasks = Task.objects.filter(status=Task.Status.COMPLETE,
Expand Down

0 comments on commit b328bde

Please sign in to comment.