Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
It would be nice to be able to manually execute a scheduled task, for testing, for example: testing scheduled dunning actions created via Commerce Dunning.
Proposed resolution
Add the ability to manually run scheduled tasks and subsequently remove the manually run task.
Remaining tasks
Tests if this is something anyone else wants.
User interface changes
None. The capability is hidden as a menu callback. One can use it like the delete link in the current Schedule view.
API changes
Menu Callback %task/manualrun introduced which takes a task id, loads, executes and finally deletes the task.
Comment | File | Size | Author |
---|---|---|---|
manually-run-scheduled-tasks-0.patch | 3.04 KB | jpstrikesback | |
Comments
Comment #1
gladiatorhl2 CreditAttribution: gladiatorhl2 commentedHello. It seems that after running a cron job and clearing caches, this feature automatically disappears and it cannot be reanimated. What could be done to fix this issue? Thanks in advance.
Comment #2
TR CreditAttribution: TR commentedThis is mostly a duplicate of #2260529: Manual execution of scheduled rule. That issue and this one need to be combined to come up with one unified patch.
Comment #3
TR CreditAttribution: TR commentedMarked #1490158: Execute rules items immediately as a duplicate.
Added #1496256: Overview page: Interlinked Design as a related issue, since it has a mockup of how the UI might look incorporating this feature.
Comment #4
TR CreditAttribution: TR commentedAt this point, new features should be going into 8.x-3.x first, then be backported to D7 if there is sufficient community interest.