-
Notifications
You must be signed in to change notification settings - Fork 49
[Fix #932] Workflow scheduler #966
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
Conversation
f76ecef to
304ffda
Compare
b6d40e0 to
2adb5a6
Compare
impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolverFactory.java
Outdated
Show resolved
Hide resolved
impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronUtilsResolverFactory.java
Outdated
Show resolved
Hide resolved
impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/DefaultWorkflowScheduler.java
Outdated
Show resolved
Hide resolved
| try (WorkflowDefinition def = | ||
| appl.workflowDefinition(readWorkflowFromClasspath("workflows-samples/cron-start.yaml"))) { | ||
| await() | ||
| .atMost(Duration.ofMinutes(1).plus(Duration.ofSeconds(10))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not 70 seconds? 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, its a picky thing, in case we test a different minute quantity (the minimum for unix cron), you always need to increase it a few seconds to give some margin, so you just need to change the minute quantity, not the second one
399ab50 to
e4b5acf
Compare
Signed-off-by: fjtirado <ftirados@redhat.com>
Signed-off-by: fjtirado <ftirados@redhat.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
* [Fix #933] Adding timeout support (#963) Signed-off-by: fjtirado <ftirados@redhat.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * [Fix #932] Workflow scheduler (#966) Signed-off-by: fjtirado <ftirados@redhat.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * Add initial RunContainer Task support Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * image pull before run Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * refactoring + tests Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * Review comments Signed-off-by: fjtirado <ftirados@redhat.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * Disable test if docker is not Signed-off-by: fjtirado <ftirados@redhat.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * Update impl/container/pom.xml Co-authored-by: Ricardo Zanini <1538000+ricardozanini@users.noreply.github.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * post review Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> * name docker check method Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> --------- Signed-off-by: fjtirado <ftirados@redhat.com> Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com> Co-authored-by: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Co-authored-by: fjtirado <ftirados@redhat.com> Co-authored-by: Ricardo Zanini <1538000+ricardozanini@users.noreply.github.com>
Fix #932