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

252 create execution phase dialogs #53

Merged
merged 13 commits into from
Jul 28, 2022

Conversation

wbaccinelli
Copy link
Contributor

@wbaccinelli wbaccinelli requested a review from raar1 July 18, 2022 10:07
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@raar1 raar1 left a 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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@wbaccinelli wbaccinelli merged commit 68c47da into main Jul 28, 2022
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

Successfully merging this pull request may close these issues.

Create execution phase dialogs
2 participants