Skip to main content

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

ParamTypeDescriptionRequired
aliasstrUnique value to identify taskTrue
titlestrTitle of taskTrue
task_typeTask TypeType of the taskTrue
script_pathstrPython scriptTrue
requirements_pathstrText file with needed requirementsFalse
descriptionstrDescription for taskFalse
inputsTru InputsInputs of the taskFalse
outputsTru OutputsInputs of the taskFalse
local_fileboolIt means you are uploading Script and Requirements Path locally, or False if you want to get them from TruStorageFalse, default True