Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2016 at 17:13 UTC
Updated:
5 Jan 2017 at 15:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikey_p commentedComment #3
jonathan1055 commentedThis is a nice idea. I have not been able to get Drush working yet on my local server, so I have never used it properly. I really need to get that sorted, then I can test your patch.
Comment #4
jonathan1055 commentedHave you seen blog tip Replace hook_drush_command by a yaml file?
I wonder if this is now available for us to use, instead of the hook implementation?
Comment #5
jonathan1055 commentedOn second look, Replace hook_drush_command by a yaml file requires the .drush.yml file but it still needs hook_drush_command(). For our small usage it is not worth adding two new files, so sticking with the original scheduler.drush.inc
I have added a message to say that the lightweight cron process has finnished. Then added an option
--nomsgto inhibit this message, in the cases where this might be used as part of a larger script.Just one quesion - is there a reason why you added the file into a new
drushfolder? It works fine if simply added into the scheduler main directory.Comment #7
jonathan1055 commentedI did some research and there is no particular reason or encouragement to have the .drush.inc file in a separate folder, so I left it at the module root folder.
Thanks mikey_p for creating the patch and providing this useful addition.
Comment #8
mikey_p commentedThanks for the update and committing this!
Comment #10
jonathan1055 commentedVery easy to add the same feature for 7.x. Just changed
'core' => array('7'),and instead ofit is: