Skip to content

Commit

Permalink
Track start of workflow with sentry (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo authored Dec 20, 2022
1 parent 76ce7d7 commit 5f05828
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xcp_d/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,12 @@ def main():
# Clean up master process before running workflow, which may create forks
gc.collect()

# Track start of workflow with sentry
if not opts.notrack:
from xcp_d.utils.sentry import start_ping

start_ping(run_uuid, len(subject_list))

errno = 1 # Default is error exit unless otherwise set
try:
xcpd_wf.run(**plugin_settings)
Expand Down

0 comments on commit 5f05828

Please sign in to comment.