Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
73e82fe8
authored
Aug 15, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tasks: workaround disappearing queues
parent
7e53c523
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/storage/tasks/local_tasks.py
+1
-1
circle/vm/tasks/vm_tasks.py
+1
-1
No files found.
circle/storage/tasks/local_tasks.py
View file @
73e82fe8
...
...
@@ -28,7 +28,7 @@ def check_queue(storage, queue_id, priority):
if
priority
is
not
None
:
queue_name
=
queue_name
+
"."
+
priority
inspect
=
celery
.
control
.
inspect
()
inspect
.
timeout
=
0.
1
inspect
.
timeout
=
0.
5
active_queues
=
inspect
.
active_queues
()
if
active_queues
is
None
:
return
False
...
...
circle/vm/tasks/vm_tasks.py
View file @
73e82fe8
...
...
@@ -55,7 +55,7 @@ def get_queues():
result
=
cache
.
get
(
key
)
if
result
is
None
:
inspect
=
celery
.
control
.
inspect
()
inspect
.
timeout
=
0.
1
inspect
.
timeout
=
0.
5
result
=
inspect
.
active_queues
()
logger
.
debug
(
'Queue list of length
%
d cached.'
,
len
(
result
))
cache
.
set
(
key
,
result
,
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