|  Developer
Updated on May 17, 2022

notify_process_stopped()

  • Notify about stopping of a process for current plugin gateway. It is safe to call notify_process_stopped multiple times for same process (subsequent calls will be ignored).
  • NOTE: all processes that were notified as started and were not explicitly notified as stopped will be automatically notified as stopped with failed result when current plugin gateway status will become not ready or any other process on gateway will be notified as started.
Edit

  • params: process (string), result (string) [optional]
  • return: nothing
Edit
Edit
Result Description
success Process finished successfully
failed Process failed
unspecified Impossible to determine if process finished successfully [default]
Edit
				
					require "core"

core.notify_process_stopped("removing_device", "success")