This is used to run a Task. It can be used in unit test to test a Task.
Simply provide the task type, config params and inputs. then you can call the run method to test your task and check outputs
:raises MissingInputResourcesException: [description] :raises Exception: [description] :return: [description] :rtype: [type]
Functions
Initialize self. See help(type(self)) for accurate signature.
Name | Type | Default value | Description |
---|---|---|---|
task_type | Type | ||
params | Dict | ||
inputs | Dict | ||
config_model_id | str | ||
input_specs | InputSpecs | ||
output_specs | OutputSpecs |
Method to create an observer and attached it to the task. The log will be available in the retuned BasicMessageObserver. This can be useful for testings
BasicMessageObserver |
Method to create an observer and attached it to the task. The log will be available in the retuned BasicMessageObserver. This can be useful for testings
Name | Type | Default value | Description |
---|---|---|---|
observer | MessageObserver |
This method check the config and inputs and then execute the check before run of the task
CheckBeforeTaskResult |
Name | Type | Default value | Description |
---|---|---|---|
output_name | str |
Resource |
Dict |
Task |
This method, checks the config, inputs and then run the task
Dict |
Name | Type | Default value | Description |
---|---|---|---|
input_name | str | ||
resource | Resource |
Name | Type | Default value | Description |
---|---|---|---|
progress_bar | ProgressBar |