Created on 24 February 2015, about 10 years ago
Updated 8 January 2025, 4 months ago

Hi,

I have a few questions please about Ultimate Cron (v2). Can you assist?

1. With regards to load balancing; is there anyway to set this dynamically or inside the db, or automatically? I am planning on using multiple AWS instances with auto scaling and would like to scale ultimate cron too, but this means changing the settings.php as far as I can tell. I saw mention of Apache being used to balance based on least idle, but I am using nginx.

2. Also with load balancing, can you specific a job per server? e.g. could I say all queues should be on one server, everything else on other servers?

3. I am currently using elysia cron. How easy is it to move the cron jobs and queues from elysia? I see on v2 it says "Uses hook_cronapi() (Elysia Cron compatible, NOT 2.x, please use hook_cron_alter() for similar functionality)". Is there any more information about this? I can't find anything. Also, is the queue processing any different in UC than EC?

An example of my current set up is:

function custom_cronapi($op, $job = NULL) {
	$items['custom_clean_stale_notifications_hourly_queue'] = array(
		'description' => 'Clean the stale notifications hourly queue.',
		'rule' => '*/2 * * * *',
		'callback' => 'custom_clean_stale_notifications_hourly_queue',
		'file' => 'custom.cron.inc',
	);
}
	function custom_cron_queue_info() {
$queues['custom_stale_notifications_weekly_tasks'] = array(
		'worker callback' => 'custom_stale_notifications_task',
		'time' => 15,
		'skip on cron' => TRUE,
	);
}

Thanks,
Paul.

💬 Support request
Status

Closed: outdated

Component

Code

Created by

🇬🇧United Kingdom techypaul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • 🇩🇰Denmark arnested

    I'm closing this since Drupal 7 is now unsupported and there will be no more development on the Drupal 7 branch of Ultimate Cron either.

    Thank you for taking the time and effort in reporting this issue, even though it never got resolved.

Production build 0.71.5 2024