Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
e113a47e
Commit
e113a47e
authored
Aug 01, 2017
by
Erick Hitter
Committed by
GitHub
Aug 01, 2017
Browse files
Merge branch 'master' into add/cli-orchestration
parents
d6dfe7b4
7c089e0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/class-lock.php
View file @
e113a47e
...
@@ -15,7 +15,7 @@ class Lock {
...
@@ -15,7 +15,7 @@ class Lock {
public
static
function
check_lock
(
$lock
,
$limit
=
null
,
$timeout
=
null
)
{
public
static
function
check_lock
(
$lock
,
$limit
=
null
,
$timeout
=
null
)
{
// Timeout, should a process die before its lock is freed
// Timeout, should a process die before its lock is freed
if
(
!
is_numeric
(
$timeout
)
)
{
if
(
!
is_numeric
(
$timeout
)
)
{
$timeout
=
LOCK_DEFULT_TIMEOUT_IN_MINUTES
*
\
MINUTE_IN_SECONDS
;
$timeout
=
LOCK_DEF
A
ULT_TIMEOUT_IN_MINUTES
*
\
MINUTE_IN_SECONDS
;
}
}
// Check for, and recover from, deadlock
// Check for, and recover from, deadlock
...
...
includes/constants.php
View file @
e113a47e
...
@@ -32,4 +32,4 @@ const JOB_LOCK_EXPIRY_IN_MINUTES = 30;
...
@@ -32,4 +32,4 @@ const JOB_LOCK_EXPIRY_IN_MINUTES = 30;
* Locks
* Locks
*/
*/
const
LOCK_DEFAULT_LIMIT
=
10
;
const
LOCK_DEFAULT_LIMIT
=
10
;
const
LOCK_DEFULT_TIMEOUT_IN_MINUTES
=
10
;
const
LOCK_DEF
A
ULT_TIMEOUT_IN_MINUTES
=
10
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment