Skip to content

Commit

Permalink
fix: syntax error on stop in run bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 11, 2024
1 parent 0e33411 commit 7ca32b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pdf_agents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,10 @@ def start(self, *args, **kwargs):
super().start(*args, **kwargs)
self._report_producer("start", self._compose_run_bundle.start_doc)

def stop(self, *args, **kwargs):
super().stop(*args, **kwargs)
self._report_producer("stop", self._compose_run_bundle.stop_doc)
def stop(self, exit_status="success", reason=""):
super().stop(exit_status, reason)
stop_doc = self._compose_run_bundle.compose_stop(exit_status=exit_status, reason=reason)
self._report_producer("stop", stop_doc)

def _write_event(self, stream, doc, uid=None):
"""Add event to builder as event page, and publish to catalog
Expand Down

0 comments on commit 7ca32b2

Please sign in to comment.