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

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

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

View Article

Image may be NSFW.
Clik here to view.

Nodes not get indexed after running manual cron

I'm experiencing some unexpected behavior of cron. I have used search_api module, that should index all nodes. Automatic cron is set to 1 hour. So after every hour, cron will run automatically.So, the...

View Article



Cron stopped running; logs say: "Attempting to re-run cron while it is...

What are the steps to troubleshoot and resolve this issue as per title? When I try to run manually, I get a page immediately, and the error message "Attempting to re-run cron while it is already running."

View Article
Browsing latest articles
Browse All 35 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>