Skip to content

[Fix #1529] Printing error message#1530

Merged
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1529
Jul 10, 2026
Merged

[Fix #1529] Printing error message#1530
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1529

Conversation

@fjtirado

Copy link
Copy Markdown
Collaborator

Also improve the time spent by LifeCycleEventTest

Copilot AI review requested due to automatic review settings July 10, 2026 14:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses #1529 by surfacing failures from scheduled workflow instance execution, and reduces overall test runtime by shortening wait durations and tightening timeouts in lifecycle-related tests and samples.

Changes:

  • Add error logging when a scheduled workflow instance completes exceptionally.
  • Reduce wait durations in the wait-set workflow sample and the Java DSL wait workflow used in tests.
  • Speed up LifeCycleEventsTest by removing a wait-based suspend/resume test and reducing a timeout assertion window.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
impl/test/src/test/resources/workflows-samples/wait-set.yaml Shortens the wait duration in the sample workflow to reduce test time.
impl/test/src/test/java/io/serverlessworkflow/impl/test/LifeCycleEventsTest.java Removes a slow wait-based suspend/resume test and tightens a timeout assertion; updates DSL wait to 200ms.
impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledInstanceRunnable.java Adds logging for scheduled workflow execution failures via whenComplete.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 10, 2026 14:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings July 10, 2026 15:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Also improve the time spent by LifeCycleEventTest

Signed-off-by: fjtirado <ftirados@ibm.com>
Copilot AI review requested due to automatic review settings July 10, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

for (String type : AbstractLifeCyclePublisher.getLifeCycleTypes()) {
eventBroker.register(type, ce -> publishedEvents.add(ce));
}
;
.withExecutorFactory(
new ExecutorServiceFactory() {

private ExecutorService service = Executors.newFixedThreadPool(2);
Comment on lines +92 to +94
public void close() throws Exception {
service.shutdownNow();
}
Comment on lines +59 to +68
.whenComplete(
(model, ex) -> {
if (ex != null) {
logger.error(
"Scheduled workflow instance {} of definition {} has failed",
instance.id(),
definition.id(),
ex);
}
}));
@fjtirado
fjtirado merged commit 107211b into open-workflow-specification:main Jul 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants