Skip to content

Commit

Permalink
Merge pull request #15 from shrutimantri/remove-eachsequentialparallel
Browse files Browse the repository at this point in the history
fix: remove reference of EachSequential and EachParallel
  • Loading branch information
wrussell1999 authored Nov 15, 2024
2 parents 6c8002b + e4d8129 commit 32dfb61
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 19 deletions.
5 changes: 3 additions & 2 deletions azure-blob-to-bigquery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ namespace: company.team

tasks:
- id: each
type: io.kestra.plugin.core.flow.EachParallel
value: "{{ trigger.blobs | jq('.[].uri') }}"
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values: "{{ trigger.blobs | jq('.[].uri') }}"
tasks:
- id: upload_from_file
type: io.kestra.plugin.gcp.bigquery.Load
Expand Down
5 changes: 3 additions & 2 deletions parallel-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ tasks:
- echo "Hello from 4" >> out/output4.txt

- id: each
type: io.kestra.plugin.core.flow.EachParallel
value: "{{ outputs.bash.outputFiles | jq('.[]') }}"
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values: "{{ outputs.bash.outputFiles | jq('.[]') }}"
tasks:
- id: path
type: io.kestra.plugin.core.debug.Return
Expand Down
5 changes: 3 additions & 2 deletions parallel-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ namespace: company.team

tasks:
- id: parallel
type: io.kestra.plugin.core.flow.EachParallel
value:
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values:
- 1
- 2
- 3
Expand Down
5 changes: 3 additions & 2 deletions python-csv-each-parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ namespace: company.team

tasks:
- id: csv
type: io.kestra.plugin.core.flow.EachParallel
value:
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values:
- https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
- https://huggingface.co/datasets/kestra/datasets/raw/main/csv/products.csv
- https://huggingface.co/datasets/kestra/datasets/raw/main/csv/salaries.csv
Expand Down
5 changes: 3 additions & 2 deletions python-partitions-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ tasks:
Kestra.outputs({'partitions': partitions})
- id: process_partitions
type: io.kestra.plugin.core.flow.EachParallel
value: "{{ outputs.get_partitions.vars.partitions }}"
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values: "{{ outputs.get_partitions.vars.partitions }}"
tasks:
- id: partition
type: io.kestra.plugin.scripts.python.Script
Expand Down
5 changes: 3 additions & 2 deletions redis-set-parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ inputs:
tasks:
- id: parallel
type: io.kestra.plugin.core.flow.EachParallel
value: "{{ inputs.values }}"
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values: "{{ inputs.values }}"
tasks:
- id: set
type: io.kestra.plugin.redis.string.Set
Expand Down
5 changes: 3 additions & 2 deletions s3-map-over-objects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ tasks:
message: "Found objects {{ outputs.list_objects.objects }}"

- id: map_over_s3_objects
type: io.kestra.plugin.core.flow.EachParallel
value: "{{ outputs.list_objects.objects }}"
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values: "{{ outputs.list_objects.objects }}"
tasks:
- id: filename
type: io.kestra.plugin.core.log.Log
Expand Down
7 changes: 4 additions & 3 deletions s3-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ namespace: company.team

tasks:
- id: each
type: io.kestra.plugin.core.flow.EachParallel
type: io.kestra.plugin.core.flow.ForEach
concurrencyLimit: 0
values: "{{ trigger.objects | jq('.[].uri') }}"
tasks:
- id: s3_object
type: io.kestra.plugin.core.debug.Return
format: "{{ taskrun.value }}"
value: "{{ trigger.objects | jq('.[].uri') }}"

triggers:
- id: wait_for_s3_object
Expand All @@ -32,7 +33,7 @@ extend:
internal storage and move the S3 objects to an `archive` folder (i.e. S3
object prefix with the name `archive`).
The `EachParallel` task will iterate over the objects and print their URIs.
The `FoEach` task will iterate over the objects and print their URIs.
It's recommended to set the `accessKeyId` and `secretKeyId` properties as secrets.
Expand Down
4 changes: 2 additions & 2 deletions snowflake-query-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ namespace: company.team

tasks:
- id: each
type: io.kestra.plugin.core.flow.EachSequential
value: "{{ trigger.rows }}"
type: io.kestra.plugin.core.flow.ForEach
values: "{{ trigger.rows }}"
tasks:
- id: automated_process
type: io.kestra.plugin.scripts.shell.Commands
Expand Down

0 comments on commit 32dfb61

Please sign in to comment.