Questions tagged as ['cron']

Use it for questions about performing routine and other maintenance tasks in Drupal.
Score: 0
Matoeil avatar
hook_cron triggered manually but not automatically
za flag

That hook cron below is executed when i manually trigger the cron but is not on a regular automatic base (every 3h).

How can it be ?

function my_module_cron() {    
  \Drupal::logger('my_module')->notice('entering hook_cron');
  //some more code
Score: 0
Jean da Silva avatar
Cron is running but not saving entity
cn flag

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 will upgrade it later to a queue.

The problem is that the cron is running, but even without errors the entity is not saving or updating. If I copy the code and try to execute it with a route (not using  ...

Score: 1
Nitro avatar
How many temporary files will be deleted on every cron run?
gb flag

I was just wondering if anyone knew how many files the Drupal cron removes from your tmp/ directory per cron run? Is it limited to 100 at a time? Where can I see this information?