Skip to Content
Former Member
Oct 05, 2016 at 08:04 AM

Hybris 5.7.001 cron job runs immediately on creation of future-dated trigger



We have a Hybris 5.7.001 instance, and we need a cron job to run at a specific time.

We created the cron job, and attached a trigger for some hours later: 0 0 17 1/1 ? (run at 5pm, repeat every day)

The trigger interval option is set to "cron expression defined"

We noticed that the cron job executes immediately upon saving of the trigger, even though we do this after 5pm - so the next scheduled execution should only be tomorrow at 5pm...

In the trigger editor window, we can even see Hybris translating our cron expression - and stating that the "next activation" should be tomorrow...

This is a simple example. The effect is the same with other cron expressions, and also for triggers with interval of ONCE.

Any ideas why this is happening?

Anyone else experience this?