Problem/Motivation
Follow-up to #2507031-158: Optimize automatic cron subscriber by moving automatic cron to a module
@catch
I'm not 100% on keeping the form and altering it, we could possibly move that to a status report item, then link to the form if automated cron is enabled.
The cron should not be run when the user clicks "Save configuration" button.
Proposed resolution
Move the cron form to a status report item, then link to the form if automated cron is enabled
Remaining tasks
| Task | Novice task? | Contributor instructions | Complete? |
|---|---|---|---|
| Create a patch | Instructions | ||
| (clarify the problem) Update the issue summary | Instructions | ||
| Embed before and after screenshots in the issue summary | Novice | Instructions | |
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |
User interface changes
- With automated_cron module disabled, the cron form is disabled at
/admin/config/system/cron. - In Status report there's a new line under "Cron maintenance tasks" telling to enable the automated_cron module, if disabled, or linking to Automated Cron settings form, if enabled.
- The former route/link title 'Cron' (in /admin/config/system) renamed to 'Automated Cron'
- Rearranged form elements in /admin/config/system/cron to give priority to 'interval' setting.
.
.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | 2581949-26.patch | 13.96 KB | br0ken |
Comments
Comment #2
claudiu.cristeaWorking on it.
Comment #3
claudiu.cristeaPatch. Fixed IS.
Comment #6
claudiu.cristeaLet's see.
Comment #9
claudiu.cristeaFix
Comment #10
dawehnerI'm actually not convinced by all the changes you made in that issue. There seems to be multiple things. IMHO we should keep the existing form in system module + have a dedicated configuration form for automated cron, but not intersect the two.
That module check doens't make sense, cron is a generic functionality usable outside of the automated_cron module.
This functionality doesn't make sense to live just in automated_cron module ...
Comment #11
claudiu.cristea@dawehner.
In the absence of automated_cron module, the form simply duplicates what we already have in
admin/reports/status, under "Cron maintenance tasks". Items provided in both:So it's pure duplication. Also note that, without automated_cron module enabled, the form doesn't expose any value/config/setting to be saved. It's only info and a manual cron run trigger.
If we keep the actual form (from system), the IS must be redefined. I'm passing this issue to @catch for an evaluation because he raised first the concern that this form, in absence of automated_cron, is a duplication of status.
Comment #12
dawehnerWell, in this case I would get rid of the button in the first place.
Comment #13
catchTagging for usability review. This comes down to whether the page is useful with no modules enabled and how the other modules either extend it or add their own administration pages without it.
Comment #14
yesct commentedComment #15
Bojhan commentedI am not sure if the functionality changes in this patch offer any additional value to users? @catch could you entail what the goal is here? It seems to mainly just add clutter.
Comment #16
Bojhan commentedComment #17
catch@Bojhan it removes the automated cron form (and hence the link to it in the admin interface), if the module isn't enabled. So there is more on status reports, but less menu items in admin/config. Also there is nothing to configure if the module isn't enabled, which makes it odd to have a configuration form.
Comment #18
Bojhan commentedComment #19
claudiu.cristeaWhen automated_cron is uninstalled, the form shows the same info as the status. The only difference is that the manual cron trigger is a button on the form, while it's a link on the status page. Without automated_cron that form has no settings to configure.
Comment #20
chi commentedComment #21
claudiu.cristeaComment #23
claudiu.cristeaReroll for 8.1.x.
Comment #26
br0kenI'm proposing not do cardinal changes and just override (read "extend") default form.
Comment #27
Bojhan commentedWhat does this mean for releasability - considering BC?
Comment #28
br0ken@Bojhan, I'm not sure I understand what you meant by. Changes means that:
- cron will not be triggered during saving its configuration;
- configuration saving will not performed by clicking on "Run cron";
- interval configuration ain't available when "automated_cron" module disabled.
Does it make sense for you?
Comment #29
br0kenAny updates?
Comment #31
br0kenComment #43
smustgrave commentedWonder if this is still a valid task. And what is needed for D10 to move this forward?
Comment #45
smustgrave commentedSince there hasn't been a follow up in over a year going to close out for now.
If still a valid task please reopen.