0

Is there a way to run a scheduled task manually without any programming?

If not, this way seems not to work properly Manual execution of scheduled rule. After executing a rule, having another one on the list, clearing caches and running the cron, this feature automatically disappears somehow. There is something wrong in the code.

6
  • Do you want to do it with Rules? If so, when you created a component and scheduled it with rules scheduler, under the Rules Components Tab there will be links next to the listed component, in particular 'execute' whereby you may execute the component, and schedule, which allows manual scheduling of the component. This is mainly there to help debugging the rule component saving you from the trouble of advancing your hosting machines clock. Commented Nov 3, 2014 at 17:00
  • @J. Reynolds I would like to execute a scheduled rule earlier than a scheduled date. There is only 'delete' in the scheduled tab. I tried to execute the component but it seems that it's not possible to execute the specific scheduled component? Commented Nov 4, 2014 at 18:11
  • Exactly, but it seems you might not have Rules Scheduler installed. It is a sub module of Rules. When it is installed you can schedule Rules to execute at specific times via a Cron run. And you are definitely looking in the wrong tab. You need to be on the Rules Component Tab. Commented Nov 5, 2014 at 3:00
  • @J. Reynolds I suppose that this sub module has been already installed by default. I looked in the Rules Component Tab. Yes, there is a function 'execute' but it seems that it is not possible to execute the specific scheduled rule/component which is already in the Rules Schedule Tab. Is that right? For example, a transmission of userpoints has been already scheduled and I would like to execute it a little bit earlier than the scheduled date. Commented Nov 5, 2014 at 4:23
  • @J. Reynolds I have verified better and it can be concluded that there is no Rules ID in the Component executing rule set, if I am not wrong, so there is no out of box solution? Commented Nov 6, 2014 at 7:33

2 Answers 2

1

This is how i do it, I use flags module, i create a user flag for each "run manualy my special rule" assigning flag/unflag access only to admin user and i display link on user profile page, flagging or unflagging myself to trigger my special rule, then, most of the time i use views rules module to load content, products, orders or users and perform any kind of stuff with it.

0

You need to use Scheduler module. This is a way : How to use.

3
  • It is needed to run some other tasks than publishing and unpublishing content. Scheduler is only aimed for that feature, is that right? Commented Nov 3, 2014 at 6:04
  • Ok so you want to run scheduler for publishing & unpublishing content.
    – Nishant
    Commented Nov 3, 2014 at 6:07
  • For example, a transmission of userpoints is scheduled, if it is needed to be clarified. I suppose, if a task can be executed manually, any task will be run in this way. Commented Nov 6, 2014 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.