Repository navigation
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
workflows
Describe the bug
After testing the Tracking of user activity and taking actions workflow in the documentation which creates a scheduled task, this workflow was deleted from the UI before being explicitly disabled.
After deletion, server logs show that the scheduled task associated with the workflow continues to execute and fails because the referenced workflow no longer exists:
ERROR [org.keycloak.services.scheduled.ScheduledTaskRunner] (Timer-0) Failed to run scheduled task workflow-032b10ae-dfc2-41be-996a-d3dc0e868282: jakarta.ws.rs.BadRequestException: Not a valid workflow resource: 032b10ae-dfc2-41be-996a-d3dc0e868282
This results in repeated error logs from ScheduledTaskRunner.
Version
26.6.0
Regression
- The issue is a regression
Expected behavior
Deleting a workflow should also unregister or cancel any associated scheduled tasks, or prevent further execution attempts.
Actual behavior
The scheduled task continues to run and attempts to execute a workflow that has been deleted, resulting in repeated errors.
How to Reproduce?
Create a workflow as in the example in the documentation, delete without disabling and observe the logs.
Anything else?
No response
Activity
[-]Deleted scheduled workflow still attempting to run[/-][+]Deleted workflow still attempting to run[/+]OrenKaizer1 commentedon Apr 19, 2026
I experience this issue too.
sguilhen commentedon Apr 20, 2026
@leannebriffa @OrenKaizer1 are you running the feature on a single node or on a cluster? I can see a possible issue with a cluster setup where the timer doesn't get properly deactivated on every node.
leannebriffa commentedon Apr 20, 2026
@sguilhen on a cluster. However already tried temporarily scaling down to a single node as suspected that this may be the case
15 remaining items
Synchronize workflow scheduled settings using cluster events (#48422)
OrenKaizer1 commentedon Apr 28, 2026
What is the current status of the issue, was it solved?
sguilhen commentedon Apr 28, 2026
@OrenKaizer1 Yes and the fix was backported to 26.6 branch, so the next release will have it.
Synchronize workflow scheduled settings using cluster events (keycloa…