Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix single task typos #553

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rsts/user/features/single_task_execution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ After you've built an image with your updated task code, create an execution usi
...


my_single_task_execution = my_task.launch(project="my_flyte_projext", domain="development", inputs={'plant': 'ficus'})
my_single_task_execution = my_task.launch(project="my_flyte_project", domain="development", inputs={'plant': 'ficus'})
print("Created {}".format(my_single_task_execution.id))

Just like workflow executions, you can optionally pass a user-defined name, labels, annotations, and/or notifications when launching a single task.
Expand Down Expand Up @@ -80,11 +80,11 @@ A certain category of tasks don't rely on custom containers with registered imag

containerless_task = SdkPrestoTask(
task_inputs=inputs(ds=Types.String, count=Types.Integer, rg=Types.String),
statement="SELECT * FROM flyte.widgets WHERE ds = '{{ .Inputs.ds}}' LIMIT '{{ .Inputs.count}}'",
statement="SELECT * FROM flyte.widgets WHERE ds = '{{ .Inputs.ds}}' LIMIT {{ .Inputs.count}}",
output_schema=Types.Schema([("a", Types.String), ("b", Types.Integer)]),
routing_group="{{ .Inputs.rg }}",
)

my_single_task_execution = containerless_task.register_and_launch(project="my_flyte_projext", domain="development",
my_single_task_execution = containerless_task.register_and_launch(project="my_flyte_project", domain="development",
inputs={'ds': '2020-02-29', 'count': 10, 'rg': 'my_routing_group'})