Once the module is setup and ready, a drush command should be provided that will allow enabling/disabling "run on cron" for system monitor. This will make it easier for developers to manage this setting without requiring the use of the UI.
This command should be compatible with drush 8 and 9.
Additionally, this ticket should include updating the associated drush command documentation here:
https://www.drupal.org/docs/8/modules/system-monitor/drush
The update should include a sample usage of the command and what it does.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | interdiff-3074973-6-9.txt | 1.61 KB | robpowell |
| #9 | system-monitor-3074973-9.patch | 1.6 KB | robpowell |
| #6 | system-monitor-3074973-6.patch | 1.62 KB | robpowell |
Comments
Comment #2
merauluka commentedAssigning to Rob Powell.
Comment #3
robpowell@merauluka, is this a config value that already exists? If we are planning on it being a config value, do we need a custom command or will drush cset suffice?
Comment #4
merauluka commentedIt will be a config value. But I was hoping that we could provide it as a shorter command than cset. Because cset would require typing in the full name of the config file and the setting to set.
This would be, basically, a shortcut.
Comment #5
merauluka commentedUpdated the original ticket description to include updating the documentation page as part of this ticket.
Comment #6
robpowellCreate a drush 8 command to turn cron on and off. I am holding off on updating documentation until we approval the naming convention. I also created a follow up issue to create drush 9 commands, 3094757.
Comment #7
robpowellComment #8
merauluka commented@robpowell After looking through the drush commands, I think that if we can create a third function and then pass the on/off value through to it it would prevent code duplication. What do you think?
Comment #9
robpowellLet's give this a shot.
Comment #11
merauluka commentedCommitted! Thanks!