Skip to content
Snippets Groups Projects
Commit 28a1b1e2 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-000: do not cycle test data through state, because the finished state...

TMSS-000: do not cycle test data through state, because the finished state sets the start time to now
parent 9668c4db
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,6 @@ def populate_test_data():
scheduled_subtasks = models.Subtask.objects.filter(task_blueprint__scheduling_unit_blueprint=scheduling_unit_blueprint, task_blueprint__name='Calibrator Observation 1', specifications_template__type='observation').all()
for subtask in scheduled_subtasks:
schedule_subtask(subtask)
for state in [SubtaskState.Choices.QUEUEING, SubtaskState.Choices.QUEUED, SubtaskState.Choices.STARTING, SubtaskState.Choices.STARTED, SubtaskState.Choices.FINISHING, SubtaskState.Choices.FINISHED]:
subtask.state = SubtaskState.objects.get(value=state.value)
subtask.save()
else:
create_task_blueprints_and_subtasks_from_scheduling_unit_draft(scheduling_unit_draft)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment