Commit 6f4dea80 authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'add/cli-orchestration' of github.com:Automattic/Cron-Control...

Merge branch 'add/cli-orchestration' of github.com:Automattic/Cron-Control into add/cli-orchestration
parents 54c33d2f 5e616c27
......@@ -15,7 +15,7 @@ class Lock {
public static function check_lock( $lock, $limit = null, $timeout = null ) {
// Timeout, should a process die before its lock is freed
if ( ! is_numeric( $timeout ) ) {
$timeout = LOCK_DEFULT_TIMEOUT_IN_MINUTES * \MINUTE_IN_SECONDS;
$timeout = LOCK_DEFAULT_TIMEOUT_IN_MINUTES * \MINUTE_IN_SECONDS;
}
// Check for, and recover from, deadlock
......
......@@ -31,5 +31,5 @@ const JOB_LOCK_EXPIRY_IN_MINUTES = 30;
/**
* Locks
*/
const LOCK_DEFAULT_LIMIT = 10;
const LOCK_DEFULT_TIMEOUT_IN_MINUTES = 10;
const LOCK_DEFAULT_LIMIT = 10;
const LOCK_DEFAULT_TIMEOUT_IN_MINUTES = 10;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment