Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
d77ef0e1
Commit
d77ef0e1
authored
May 08, 2017
by
Dominik Hebeler
Browse files
Merge branch '485-ux-bei-such-timeout' into 'development'
Bugfix Closes
#485
See merge request
!837
parents
0d27b8d7
b228e9ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Jobs/Searcher.php
View file @
d77ef0e1
...
...
@@ -97,7 +97,7 @@ class Searcher implements ShouldQueue
}
}
// When we reach this point, time has come for this Searcher to retire
$this
->
exit
();
$this
->
shutdown
();
}
private
function
retrieveUrl
(
$url
){
...
...
@@ -116,7 +116,7 @@ class Searcher implements ShouldQueue
$this
->
lastTime
=
microtime
(
true
);
}
private
function
exit
(){
private
function
shutdown
(){
Redis
::
hdel
(
$this
->
name
.
".stats"
,
$this
->
pid
);
if
(
sizeof
(
Redis
::
hgetall
(
$this
->
name
.
".stats"
))
===
0
){
Redis
::
del
(
$this
->
name
);
...
...
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