Scheduled actions locked

Recommended Posts

You could create a custom action, call it "Clear Scheduled Actions". Then create a rule for that custom action which has a custom php code action on it.

Add the following PHP code into it:

\IPS\Db::i()->delete( 'rules_scheduled_actions', array('schedule_id > 0') );

Then schedule that custom action to run one time. That should clear it out.

Share this post

Link to post
Share on other sites

Thank you!

2 minutes ago, Kevin Carwile said:

Or if you want to just clear out stuff that's in the past.

\IPS\Db::i()->delete( 'rules_scheduled_actions', array( 'schedule_time<=?', time() ) );


How far is in the past?

Share this post

Link to post
Share on other sites

Your content will need to be approved by a moderator

You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.