By z.b.q on
Hi All,
I create a module to invoke the drupal cron hook, but if then, it will use the drupal cron settings. Is there any way to invoke a cron job with my own settings? I want this module to check the data in database, so I think it is better if it is a module (because we can invoke the db api very easy in a module).
So my purpose is let the drupal cron run one time per hour, and let my custom crons one time per day.
Any suggestion is welcome.
Comments
Yes and no. You have to set
Yes and no. You have to set cron to run once per hour, but you can set a variable in your hook_cron() so that your own hook only executes once a day:
Contact me to contract me for D7 -> D10/11 migrations.
Thank you very much.
Thank you very much.