Skip to content

Commit

Permalink
fix: runner to taskrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
wrussell1999 committed Nov 8, 2024
1 parent c65c788 commit 5f95f87
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
3 changes: 2 additions & 1 deletion aws-lambda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ tasks:
your_event_input: hey there
- id: lambda_result
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- cat {{ outputs.lambda.uri }} | jq -r '.body'
extend:
Expand Down
3 changes: 2 additions & 1 deletion generate-pdf-with-gotenberg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ variables:
tasks:
- id: pdf
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
warningOnStdErr: false
commands:
- curl --request POST '{{ vars.server }}/forms/chromium/convert/url'
Expand Down
3 changes: 2 additions & 1 deletion input-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ inputs:
tasks:
- id: read_file
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- cat "{{ inputs.text_file }}"
extend:
Expand Down
3 changes: 2 additions & 1 deletion on-failure-alert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ namespace: company.team
tasks:
- id: fail
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- exit 1
errors:
Expand Down
6 changes: 4 additions & 2 deletions parallel-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ namespace: company.team
tasks:
- id: bash
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
outputFiles:
- out/**
commands:
Expand All @@ -21,7 +22,8 @@ tasks:
format: "{{ taskrun.value }}"
- id: contents
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- cat "{{ taskrun.value }}"
extend:
Expand Down
3 changes: 2 additions & 1 deletion react-to-sqs-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ namespace: company.team
tasks:
- id: print_message
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- cat "{{ trigger.uri }}"
triggers:
Expand Down
3 changes: 2 additions & 1 deletion retries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ namespace: company.team
tasks:
- id: fail_4_times
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- if [ "{{ taskrun.attemptsCount }}" -eq 4 ]; then exit 0; else exit 1; fi
retry:
Expand Down
3 changes: 2 additions & 1 deletion snowflake-query-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ tasks:
tasks:
- id: automated_process
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- echo "{{ json(taskrun.value) }}"
- echo "Welcome to Kestra {{ json(taskrun.value).FIRST_NAME }} {{
Expand Down

0 comments on commit 5f95f87

Please sign in to comment.