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.

  • 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. – J. Reynolds Nov 3 '14 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? – gladiatorhl2 Nov 4 '14 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. – J. Reynolds Nov 5 '14 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. – gladiatorhl2 Nov 5 '14 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? – gladiatorhl2 Nov 6 '14 at 7:33
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.

  • It is needed to run some other tasks than publishing and unpublishing content. Scheduler is only aimed for that feature, is that right? – gladiatorhl2 Nov 3 '14 at 6:04
  • Ok so you want to run scheduler for publishing & unpublishing content. – Nishant Nov 3 '14 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. – gladiatorhl2 Nov 6 '14 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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