|
@@ -132,7 +132,7 @@ function fetch_task()
|
|
// Try to find a task. Specifically, try to find one that hasn't been claimed previously, or failing that,
|
|
// Try to find a task. Specifically, try to find one that hasn't been claimed previously, or failing that,
|
|
// a task that was claimed but failed for whatever reason and failed long enough ago. We should not care
|
|
// a task that was claimed but failed for whatever reason and failed long enough ago. We should not care
|
|
// what task it is, merely that it is one in the queue, the order is irrelevant.
|
|
// what task it is, merely that it is one in the queue, the order is irrelevant.
|
|
- $request = $smcFunc['db_query']('', '
|
|
|
|
|
|
+ $request = $smcFunc['db_query']('cron_find_task', '
|
|
SELECT id_task, task_file, task_class, task_data, claimed_time
|
|
SELECT id_task, task_file, task_class, task_data, claimed_time
|
|
FROM {db_prefix}background_tasks
|
|
FROM {db_prefix}background_tasks
|
|
WHERE claimed_time < {int:claim_limit}
|
|
WHERE claimed_time < {int:claim_limit}
|