Skip to content

Commit

Permalink
updated the duration and added all other changes except test
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyounik committed Oct 22, 2024
1 parent 4efe91a commit 7acc11e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/debug/Wait.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@Example(
code = """
id: wait
type: io.kestra.plugin.core.debug.Wait
type: wait.task
duration: "PT5S"
"""
)
Expand Down
7 changes: 7 additions & 0 deletions core/src/test/resources/flows/sleep-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id: sleep-task-flow
namespace: io.kestra.tests

tasks:
- id: sleep
type: io.kestra.core.tasks.scripts.Bash
script: sleep 30
2 changes: 1 addition & 1 deletion core/src/test/resources/flows/valids/sleep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ namespace: io.kestra.tests
tasks:
- id: sleep
type: io.kestra.core.tasks.test.Sleep
duration: 3000 #30 seconds updated
duration: 1000
5 changes: 1 addition & 4 deletions core/src/test/resources/flows/valids/wait-task-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ tasks:
commands:
- echo "Wait task completed"

triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 * * * *"

0 comments on commit 7acc11e

Please sign in to comment.