Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Restart task in RTM #4712

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Restart task in RTM #4712

merged 1 commit into from
Sep 12, 2019

Conversation

Krigpl
Copy link
Contributor

@Krigpl Krigpl commented Sep 11, 2019

No description provided.

Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Nice test cleanup

async def restart_task(self, task_id: TaskId) -> None:
task = RequestedTask.get(RequestedTask.task_id == task_id)
task.status = TaskStatus.waiting
task.save()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also discard the completed results?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are multiple ways of task restarts we wanna support

  • restart just the failed subtasks - that's the one
  • restart the whole task by creating a new one from scratch
  • restart particular subtasks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, should we make issues for the other 2? Do we want to support all 3 from the first release?

@codecov
Copy link

codecov bot commented Sep 11, 2019

Codecov Report

Merging #4712 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #4712      +/-   ##
===========================================
- Coverage    90.27%   90.27%   -0.01%     
===========================================
  Files          211      211              
  Lines        19676    19680       +4     
===========================================
+ Hits         17763    17766       +3     
- Misses        1913     1914       +1

@Krigpl Krigpl merged commit ac465a0 into develop Sep 12, 2019
@Krigpl Krigpl deleted the restart_task branch September 12, 2019 12:51
mfranciszkiewicz pushed a commit that referenced this pull request Sep 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants