Questions tagged [cron]
Use it for questions about performing routine and other maintenance tasks in Drupal.
463 questions
0 votes
0 answers
106 views
Crontab job for specific cron activity
I'm trying to setup the Job Scheduler so that specific actions can be checked against cron every minute to allow for publishing content on a scheduled basis. I'm working on part of an Acquia Cloud ...
-2 votes
1 answer
185 views
How to execute code that uses the dependency injection container, at regular intervals?
Using Drupal 10 - I tried installing Ultimate Cron for D10, but it is in Alpha state and has deprecated methods that will not let it work. This Cron needs to be executed only on a specific day and ...
1 vote
0 answers
132 views
Advanced queue module: How to stop processing queue in cron, when some conditions apply in job event/job preprocessing?
I have a custom module handling jobs from the Advanced Queue module. To limit the number of jobs allowed to be processed in one cron run, I have some configuration variables in my custom module. With ...
0 votes
1 answer
226 views
Error: on cron (field_purge_batch)
Seems that Drupal got issues removing deleted fields on cron (just a theory). Got the following error message after cron ran. Anybody got an idea how to get rid of it? Warning: foreach() argument must ...
1 vote
0 answers
354 views
How to execute migration in queue through cron run?
I am migrating some nodes from an API. The API only accepts 60 requests per minute. So it means if 60 items are imported in a minute, all other items will not be imported because the API will return ...
0 votes
0 answers
111 views
Cron is running but not saving entity
I am trying to create a simple hook_cron to connect with an external API, return some data and update some fields in some entities. I'm creating like this to understand better how cron works, so I ...
2 votes
1 answer
1k views
Cron Tasks not running in background, causing pages to take forever to load
We recently upgraded to D8 and I have been experiencing weird issues with Cron. Specifically, whenever the Cron is running, web pages are taking forever to load because cron is running some JS on the ...
0 votes
0 answers
251 views
How can I completely disable cron so that it won't run even if the cron URL is hit or cron is ran manually?
When working on a dev site I'd like to put in a safeguard to make sure cron cannot run, even if triggered manually. Is there a way to do this in Drupal 7?