Optionalcode?: numberOptionaldescend?: booleanReserved for future use: interrupt child/descendant jobs. This flag is parsed and threaded through the engine call chain but is not yet implemented — child workflows are not interrupted when this is set. Do not rely on it.
Optionalexpire?: numberhow long to wait in seconds before fully softdeleting the job; the job is inactive, but can remain in the cache indefinitely;
OptionalonFires synchronously inside store.interrupt() after the single
transaction that decrements the job semaphore AND cancels pending
escalations commits. Only used by WorkflowHandleService.terminate()
to emit local events without a second transaction or a separate query.
Optionalreason?: stringoptional Reason; will be used as the error message when thrown
Optionalstack?: stringOptional stack trace
Optionalsuppress?: booleanif true, errors related to inactivation (like overage...already inactive) are suppressed/ignored
Optionalthrow?: booleanthrow JobInterrupted error upon interrupting
Optional Error Code; will be used as the error
codewhen thrown