Skip to content

Commit

Permalink
feat: remove usage of EachSequential (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutimantri authored Nov 19, 2024
1 parent 35fff29 commit 79f9303
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/main/java/io/kestra/plugin/surrealdb/Trigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,32 @@
@Example(
title = "Wait for SurrealQL query to return results, and then iterate through rows.",
full = true,
code = {
"id: surrealdb_trigger",
"namespace: company.team",
"",
"tasks:",
" - id: each",
" type: io.kestra.plugin.core.flow.EachSequential",
" tasks:",
" - id: return",
" type: io.kestra.plugin.core.debug.Return",
" format: \"{{ json(taskrun.value) }}\"",
" value: \"{{ trigger.rows }}\"",
"",
"triggers:",
" - id: watch",
" type: io.kestra.plugin.surrealdb.Trigger",
" interval: \"PT5M\"",
" host: localhost",
" port: 8000",
" username: surreal_user",
" password: surreal_passwd",
" namespace: surreal_namespace",
" database: surreal_db",
" fetchType: FETCH",
" query: SELECT * FROM SURREAL_TABLE",
}
code = """
id: surrealdb_trigger
namespace: company.team
tasks:
- id: each
type: io.kestra.plugin.core.flow.ForEach
values: "{{ trigger.rows }}"
tasks:
- id: return
type: io.kestra.plugin.core.debug.Return
format: "{{ json(taskrun.value) }}"
triggers:
- id: watch
type: io.kestra.plugin.surrealdb.Trigger
interval: "PT5M"
host: localhost
port: 8000
username: surreal_user
password: surreal_passwd
namespace: surreal_namespace
database: surreal_db
fetchType: FETCH
query: SELECT * FROM SURREAL_TABLE
"""
)
}
)
Expand Down

0 comments on commit 79f9303

Please sign in to comment.