-
Notifications
You must be signed in to change notification settings - Fork 3
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
252 create execution phase dialogs #53
Conversation
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work. I just have one query about what happens when tasks fail (below)
phase = get_current_phase(user_id) | ||
intervention_component_id = get_intervention_component_id(intervention_component_name) | ||
store_intervention_component_to_db(user_id, phase.phase_id, intervention_component_id, True) | ||
phase = utils.get_current_phase(user_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can get_current_phase()
fail (e.g. db is temporarily down or unresponsive)? If so, and this task fails, does it automatically get rescheduled (by celery?) or do we need to do this sort of error handling ourselves here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good point. At the moment if the db is down, the task will simply fail. I will add an issue for that.
Fixes: PerfectFit-project/virtual-coach-issues#252