Changing schedule of a running ejb timer task

16 views
Skip to first unread message

Stephen Sill II

unread,
Apr 8, 2026, 12:43:26 PM (3 days ago) Apr 8
to WildFly
Hi,
I discovered something I hadn't seen before.   I have an app running on wildfly 39.0.1.

This app has a scheduled task method that looks like
 @Schedule(second = "47", minute = "*/5", hour = "*", persistent = true)

I just upgrade the app, which runs in kubernetes.  The old version of the app had minute at "*/20"  while the new one has the value as "*/5".

Since kubernetes does a rolling update and new members/replicas join the wildfly cluster and old ones leave,   I discovered that the task I intended to start running every 5 min is still running every 20m.   I realize because timer tasks are sync with infinispan that the new version of app probably saw this schedule method as scheduled so didn't replace it with new one.

Is it possible via jboss cli to have this pick up the every 5 min schedule or will I have to scale to 0 pods and then back to 2 in order to pick up the new schedule?

Thanks,
Stephen

Stephen Sill II

unread,
Apr 9, 2026, 11:05:32 AM (2 days ago) Apr 9
to WildFly
I went ahead and just scaled the deployment to 0 and back to 2, but I'm curious for future deployments if there's a way to make sure the new schedule takes effect.  Should this behavior be considered a bug?
Reply all
Reply to author
Forward
0 new messages