MCPcopy Create free account
hub / github.com/StackStorm/st2 / _is_notify_empty

Function _is_notify_empty

st2common/st2common/services/action.py:572–579  ·  view source on GitHub ↗

notify_db is considered to be empty if notify_db is None and neither of on_complete, on_success and on_failure have values.

(notify_db)

Source from the content-addressed store, hash-verified

570
571
572def _is_notify_empty(notify_db):
573 """
574 notify_db is considered to be empty if notify_db is None and neither
575 of on_complete, on_success and on_failure have values.
576 """
577 if not notify_db:
578 return True
579 return not (notify_db.on_complete or notify_db.on_success or notify_db.on_failure)
580
581
582def _is_notify_skipped(liveaction):

Callers 1

create_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected