function drush_hosting_queued_hosting_release_lock in Hosting 7.4
Same name and namespace in other branches
- 7.3 queued/hosting_queued.drush.inc \drush_hosting_queued_hosting_release_lock()
Drush command to release the lock on the task queue.
File
- queued/
hosting_queued.drush.inc, line 42 - Dispatcher daemon
Code
function drush_hosting_queued_hosting_release_lock() {
drush_log('Clearing any stale locks on task queue.');
$name = 'hosting_queue_tasks_running';
global $locks;
unset($locks[$name]);
db_delete('semaphore')
->condition('name', $name)
->execute();
}