subscribe_sequence() function
Subscribe a function to be called on job status change.
The subscription is applied to all jobs created for the execution of sequence.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback |
Callable[[Sequence, Job], None]
|
The callable function to be called on status change. |
required |
params |
Optional[List[Any]]
|
The parameters to be passed to the callback. |
None
|
sequence |
Optional[Sequence]
|
The sequence to subscribe on. If None, the subscription is applied to all sequences. |
None
|
Note
Notifications are applied only for jobs created after this subscription.