Quantcast
Channel: Active questions tagged cron - Drupal Answers
Browsing latest articles
Browse All 32 View Live

Memory size exhausted when trying to run cron manually

On my Drupal 6 website, when I run manually cron, I get this error message.Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4181580 bytes) in...

View Article



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 429...

View Article

Setting author when creating a new node via Cron

I'm creating a new node using hook_cron(). It all works except the node author is always set as anonymous (uid = 0). How can I assign a user to the new node, with say uid 21 for example?Below is the...

View Article

How to process more than one item from queue in each run?

I have set up a queue using this code.function custom_logger_cron_queue_info() { $queues['custom_logger'] = array('worker callback' => 'custom_logger_import','time' => 60, ); return $queues;}I...

View Article

Cron tasks don't work: Could the Domain Access module be the cause?

I have an issue with a website running Drupal 8. I cannot seem to get cron working. If I go to the status page and click 'run now' it works. If I try to open the cron settings...

View Article


How to check if an item exists in a Queue?

While inserting items in a Queue how can I check if the item I am trying to insert is already present in the Queue?

View Article

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 be...

View Article

Release cron lock

I ran cron and aborted the execution. Now I get this message:Attempting to re-run cron while it is already running.In Drupal 7, I could delete the cron_semaphore variable.What's the way to achieve the...

View Article


Is there a way to manually run cron with Drush?

I want to be able to accomplish this:http://mywebsite.com/admin/reports/status/run-cronBut it should be done through the Drush interface.Can any one help me out ?

View Article


How to run cron more often than every hour?

I'd like to run cron every 5 minutes, but the UI doesn't offer any increment of time smaller than an hour. I'm assuming the solution is as simple as creating a feature module for the setting, and...

View Article

Advanced queue module: How to stop processing queue in cron, when some...

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 an...

View Article

How do I run cron as an authenticated user?

On my site, user profiles are not public; the anonymous user does not have permission to access them. However, I want to send a view containing a list of member profiles in an email with Rules...

View Article

Run drush cron for a single module

Is it possible to run drush cron over a single module, something similar to "drush cron my_module"?

View Article


When does system_requirements function runs?

When does Drupal call system_requirements(), which hardens permissions for files and for directories containing them?Does Drupal call it in each cron run?

View Article

getPluginDefinition custom QueueWorker empty after upgrade

I've got a custom queue worker that used to work fine in Drupal 9, but stopped working after the upgrade to Drupal 10.I've narrowed it down to the getPluginDefinition method not returning anything. So...

View Article


Scheduler module not working even after cron run

Installed 'Scheduler module' and try to publish a content on specific time. But it seems like it is not working.I tried with 'Run cron manually' also, But it doesn't ,While trying with Scheduler light...

View Article

How to programmatically determine if the cron is running

Is there any way programatically to determine when the cron is running (and if possible, what tasks are being run)? I've explored some options online that are bound to drupal_cron_run(), but no...

View Article


Image may be NSFW.
Clik here to view.

How to set up a cron job that runs for a specific rule?

I have a 2 rules that should run each on a specific time interval instead of the regular cron job setting.I have a list of "Sessions" (entity type) that should be evaluated to see if their booking has...

View Article

Need of re-indexing on search on Drupal site?

My client site has a table whose data is coming from Indexed view, sometimes updates made to the data wont reflect in the view table. Elysia cron is installed and up running, which should update the...

View Article

Using Ultimate cron to set a specific time to run a function of module, but...

I have set ultimate cron job time once a day but it works at every hour because another default site cron is running every hour.This code is working on production but not according to crontab time i.e...

View Article

Search indexing slow query

Drupal 7.xThe search module's indexing maintenance sql query takes a couple of minutes to complete each time cron gets triggered.SELECT t.word AS realword, i.word FROM search_total t LEFT JOIN...

View Article


Scheduler Module crontab job does not publish content

When running the Scheduler lightweight cron through crontab, I am getting a message that the lightweight cron has activated and completed in my D8 log, but content is not publishing. When running the...

View Article


How to execute code that uses the dependency injection container, at regular...

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 time....

View Article

Timeout in sites, perhaps related to cron

I have been struggling with a timeout error in a couple of Drupal 8 sites, which I have not been able to reproduce. When I deploy them into my colleague's production server (a Mac machine), all the...

View Article

Image may be NSFW.
Clik here to view.

Backup & Migrate scheduled backup silently fail

I've tried to use backup & migrate for backups on my omega8 based aegir server.Although I've defined a schedule, and setup cron interval to 1 hour, it doesn't work - no backups are generated....

View Article


Scheduler Module unpublish content

Trying to schedule a content type to be unpublished on a specific date. Using the scheduler module everything is set up seemingly correct. When I run Cron the update fails, Updater Content - Publishing...

View Article

How to stop cron process without rebooting my server?

I have tried the following:drush php-eval "\Drupal::lock()->release('cron');"This had no effect. I'm still seeing "Attempting to re-run cron" errors pile up in the log.I also tried the mysql...

View Article

Ultimate Cron installation Table 'db_name.ultimate_cron_log' doesn't exist

After installing the ultimate cron module version 8.x-2.0-alpha4,When I navigate to (/admin/config/system/cron/jobs), I get the following error meassage -Base table or view not found: 1146 Table...

View Article

ECA: Cron Event - View - Message per Mail

ECA: Cron Event - View - Message per MailI would like to send a notification by e-mail to a user when a certain event occurs. The event is then a view that outputs a content, this content is currently...

View Article



hook_cron(): PHP output does not appear

I am (finally) migrating our Drupal 7 sites to Drupal 10.The one problem I have not been able to resolve is output from the hook_cron().Everything appears to execute, whether running on the browser...

View Article
Browsing latest articles
Browse All 32 View Live




Latest Images