Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Re-enabled exit event, and added missing cancelled_early output
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Sep 15, 2023
1 parent 964dfdd commit ff34168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arcaflow_plugin_wait/arcaflow_plugin_wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ class WaitStep:
description,
icon=predefined_schemas.cancel_signal_schema.display.icon,
)
def cancel_step(self, input: predefined_schemas.cancelInput):
def cancel_step(self, _input: predefined_schemas.cancelInput):
# First, let it know that this is the reason it's exiting.
self.finished_early = True
# Now signal to exit.
#self.exit.set()
self.exit.set()

@plugin.step_with_signals(
id="wait",
name="Wait",
description="Waits for the given amount of time",
outputs={"success": SuccessOutput, "error": ErrorOutput},
outputs={"success": SuccessOutput, "error": ErrorOutput, "cancelled_early": ErrorOutput},
signal_handler_method_names=["cancel_step"],
signal_emitters=[],
step_object_constructor=lambda: WaitStep(),
Expand Down

0 comments on commit ff34168

Please sign in to comment.