Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsuccesfull cancelling tasks in infinite loop #8

Closed
mareksabo opened this issue Mar 15, 2016 · 2 comments
Closed

unsuccesfull cancelling tasks in infinite loop #8

mareksabo opened this issue Mar 15, 2016 · 2 comments

Comments

@mareksabo
Copy link
Contributor

It happens when a running task has a child which is already in closed state and child should be interrupted. Interrupt happens if new patch is added to scan, so it tries to interrupt the parent repeatedly. However, the parent is trying to shut down the child which has already finished (esp. in closed state) and query is looking for opened task, which throws an exception. I think the best idea is to add condition when the query finds no results, and if the state of the task is in finished state, do not throw exception (maybe write something to log).

@TomasTomecek
Copy link
Contributor

+1 on making the state transition valid when some child tasks already finished

@mareksabo
Copy link
Contributor Author

Resolved by 12effa6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants