Hi, im a little confused on how to use the scheduler. I have a integer field that I want to be reduced in half every 3 hours. For example; if my integer field starts with a value of 100 at node creation, 3 hours after it should be 50. 3 hours after that it should be 25 and so on. How would I set up rules scheduler to do this? Thanks.

Comments

oobie11’s picture

No one huh....???

tr’s picture

Issue summary: View changes
Status: Active » Fixed

Add an action "Schedule component evaluation" to your component. Configure it to execute in "+3 hours". Make sure your cron runs frequently so that this will actually happen. So now after the component performs the task (divide integer by two and set the field value), this action will re-schedule the component for the next day. I would also add a condition to your component so that it re-schedules itself only if the value is >1, that way it won't run forever.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.