subscribe_scenario() function
Subscribe a function to be called on job status change.
The subscription is applied to all jobs created for the execution of scenario. If no scenario is provided, the subscription applies to all scenarios.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback |
Callable[[Scenario, Job], None]
|
The function to be called on status change. |
required |
params |
Optional[List[Any]]
|
The parameters to be passed to the callback. |
None
|
scenario |
Optional[Scenario]
|
The scenario to which the callback is applied. If None, the subscription is registered for all scenarios. |
None
|
Note
Notifications are applied only for jobs created after this subscription.