Create task
create(args)
Create task with TruTaskClient.
task.create(
alias ="my_task",
title="MyTask",
task_type=TaskType.Read,
script_path="task_v1.py",
requirements_path="task_requirements.txt",
description="MyTask description",
inputs=MyInputs,
outputs=MyOutputs,
local_file=False
)
Parameters
| Param | Type | Description | Required |
|---|---|---|---|
| alias | str | Unique value to identify task | True |
| title | str | Title of task | True |
| task_type | Task Type | Type of the task | True |
| script_path | str | Python script | True |
| requirements_path | str | Text file with needed requirements | False |
| description | str | Description for task | False |
| inputs | Tru Inputs | Inputs of the task | False |
| outputs | Tru Outputs | Inputs of the task | False |
| local_file | bool | It means you are uploading Script and Requirements Path locally, or False if you want to get them from TruStorage | False, default True |