Change system file temporary maximum age
The default setting given to delete temp files is after 6 hours minimum. I have users upload files and I want that if it has temp status, delete it after 15 secs. Tweaking the file module code is...
View ArticleProgrammatically get the results of a view
Using the group module in D8, I have the below view with machine name: group_members_per_groupMachine Name of: (Member account) User: Full Name is: field_user_full_name(Member account) User: Phone...
View ArticleMemory 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 ArticleHow 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 ArticleSetting 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 ArticleHow 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 ArticleCron 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 ArticleHow 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 ArticleError: 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 ArticleRelease 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 ArticleIs 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 ArticleHow 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 ArticleAdvanced 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 ArticleHow 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 ArticleRun 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 ArticleWhen 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 ArticlegetPluginDefinition 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 ArticleScheduler 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 ArticleHow 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 ArticleHow 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