-
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 <[email protected]>
Signed-off-by: fjtirado <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]>
* [Fix #933] Adding timeout support (#963) Signed-off-by: fjtirado <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> * [Fix #932] Workflow scheduler (#966) Signed-off-by: fjtirado <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> * Add initial RunContainer Task support Signed-off-by: Dmitrii Tikhomirov <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> * image pull before run Signed-off-by: Dmitrii Tikhomirov <[email protected]> * refactoring + tests Signed-off-by: Dmitrii Tikhomirov <[email protected]> * Review comments Signed-off-by: fjtirado <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> * Disable test if docker is not Signed-off-by: fjtirado <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> * Update impl/container/pom.xml Co-authored-by: Ricardo Zanini <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> * post review Signed-off-by: Dmitrii Tikhomirov <[email protected]> * name docker check method Signed-off-by: Dmitrii Tikhomirov <[email protected]> --------- Signed-off-by: fjtirado <[email protected]> Signed-off-by: Dmitrii Tikhomirov <[email protected]> Co-authored-by: Francisco Javier Tirado Sarti <[email protected]> Co-authored-by: fjtirado <[email protected]> Co-authored-by: Ricardo Zanini <[email protected]>
Fix #932