Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
6b34a01b
Commit
6b34a01b
authored
3 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
catch more scenarios
parent
2af4258f
No related branches found
No related tags found
1 merge request
!67
Draft: HPA for celery
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/tasks.py
+5
-1
5 additions, 1 deletion
jass/tasks.py
with
5 additions
and
1 deletion
jass/tasks.py
+
5
−
1
View file @
6b34a01b
...
@@ -93,7 +93,11 @@ def get_queue_status():
...
@@ -93,7 +93,11 @@ def get_queue_status():
for
worker
,
queue
in
getattr
(
inspect
,
k
)().
items
():
for
worker
,
queue
in
getattr
(
inspect
,
k
)().
items
():
ret
[
k
]
+=
len
(
queue
)
ret
[
k
]
+=
len
(
queue
)
workers
.
add
(
worker
)
workers
.
add
(
worker
)
except
ValueError
:
except
(
AttributeError
,
# when no worker
ConnectionResetError
,
# when rabbitMQ went down
TimeoutError
,
# when rabbitMQ is not reachable
):
pass
pass
ret
[
'
worker
'
]
=
len
(
workers
)
ret
[
'
worker
'
]
=
len
(
workers
)
return
ret
return
ret
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment