Skip to content

Commit

Permalink
update and status change
Browse files Browse the repository at this point in the history
  • Loading branch information
fevac committed Oct 9, 2023
1 parent 294b80d commit d17596c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trailblazer/store/crud/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def cancel_ongoing_analysis(
self.cancel_tower_analysis(analysis=analysis)
else:
self.cancel_slurm_analysis(analysis=analysis, analysis_host=analysis_host)
self.update_run_status(analysis_id=analysis_id, analysis_host=analysis_host)
analysis.status = TrailblazerStatus.CANCELLED
LOG.info(f"Case {analysis.family} - Analysis {analysis.id}: cancelled successfully!")
self.update_run_status(analysis_id=analysis_id, analysis_host=analysis_host)
analysis.status = TrailblazerStatus.CANCELLED
analysis.comment = (
f"Analysis cancelled manually by user:"
f" {(self.get_user(email=email).name if self.get_user(email=email) else (email or 'Unknown'))}!"
Expand Down

0 comments on commit d17596c

Please sign in to comment.