Skip to content

[Bug]: pushnotification is not support order-preserving of update event #775

Closed

Description

@zoujie-ee

What happened?

when status update or artifact update is sent through push notification, the request agent may not receivee those event in the order it produce. here is the code:

at MainEventBusProcessor.java line 337-357,the notification is sent asynchronous, regardless of whether the sending succeeds or fails. it may cause the wrong order of the event queue.
private void sendPushNotification(String taskId, StreamingEventKind event) {
Runnable pushTask = () -> {
try {
if (event != null) {
LOGGER.debug("Sending push notification for task {}", taskId);
pushSender.sendNotification(event);
} else {
LOGGER.debug("Skipping push notification - event is null for task {}", taskId);
}
} catch (Exception e) {
LOGGER.error("Error sending push notification for task {}", taskId, e);
// Don't rethrow - push notifications are best-effort
}
};

    // Use custom executor if set (for tests), otherwise use default ForkJoinPool (async)
    if (pushNotificationExecutor != null) {
        pushNotificationExecutor.execute(pushTask);
    } else {
        CompletableFuture.runAsync(pushTask);
    }
}

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Mar 28, 2026
  2. perhaps468 commented on Mar 28, 2026

    @perhaps468

    Could you assign this to me? Thank you.

  3. ehsavoie commented on Sep 18, 2026

    @ehsavoie
    Collaborator
  4. added a commit that references this issue on Sep 19, 2026
    1ffc02c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions