Quantcast
Viewing latest article 14
Browse Latest Browse All 37

How to set up a cron job that runs for a specific rule?

I have a 2 rules that should run each on a specific time interval instead of the regular cron job setting.
I have a list of "Sessions" (entity type) that should be evaluated to see if their booking has expired, if their starting date is in the past, etc. and then certain settings should be updated on each.
I have another list of "Events" (entity type) that does something similar but shouldn't be executed with the same frequency as the Sessions.

Both are rules components.

My first problem

These components fire when I force run my cron job with Elysia Cron module and that works. But it should be automatic. So I have assigned the "rules_cron" job to a new channel, "channel 2" and it should run every hour but it doesn't do that. rules_cron apparently runs every 48 hours or so.

Image may be NSFW.
Clik here to view.
rules_cron apparently runs every 48 hours or so

My second problem

What I really need is the Session component to run every hour and the Event component to run every 15 minutes?

What am I doing incorrectly and how do I accomplish that?

Image may be NSFW.
Clik here to view.
Elysia Cron installation settings

Image may be NSFW.
Clik here to view.
rules_cron is set to channel 2


Viewing latest article 14
Browse Latest Browse All 37

Trending Articles