unsubscribe_scenario() function
Unsubscribe a function that is called when the status of a Job
changes.
If no scenario is provided, the subscription is removed for all scenarios.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback |
Callable[[Scenario, Job], None]
|
The function to unsubscribe from. |
required |
params |
Optional[List[Any]]
|
The parameters to be passed to the callback. |
None
|
scenario |
Optional[Scenario]
|
The scenario to unsubscribe from. If None, it applies to all scenarios. |
None
|
Note
The callback function will continue to be called for ongoing jobs.