Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24cf80ad
authored
Mar 16, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix flake8
parent
db39311c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
circle/vm/tasks/vm_tasks.py
+2
-3
No files found.
circle/vm/tasks/vm_tasks.py
View file @
24cf80ad
...
@@ -13,7 +13,7 @@ def check_queue(node_hostname, queue_id):
...
@@ -13,7 +13,7 @@ def check_queue(node_hostname, queue_id):
:param node_hostname: Short hostname of the node.
:param node_hostname: Short hostname of the node.
:param queue_id: Queue identifier (eg. vm).
:param queue_id: Queue identifier (eg. vm).
"""
"""
drivers
=
[
'vmdriver'
,
'netdriver'
,
'agentdriver'
]
#
drivers = ['vmdriver', 'netdriver', 'agentdriver']
# worker_list = [node_hostname + "." + d for d in drivers]
# worker_list = [node_hostname + "." + d for d in drivers]
queue_name
=
node_hostname
+
"."
+
queue_id
queue_name
=
node_hostname
+
"."
+
queue_id
active_queues
=
get_queues
()
active_queues
=
get_queues
()
...
@@ -27,6 +27,7 @@ def check_queue(node_hostname, queue_id):
...
@@ -27,6 +27,7 @@ def check_queue(node_hostname, queue_id):
return
True
return
True
return
False
return
False
def
get_queues
():
def
get_queues
():
"""Get active celery queues.
"""Get active celery queues.
...
@@ -43,8 +44,6 @@ def get_queues():
...
@@ -43,8 +44,6 @@ def get_queues():
return
result
return
result
@celery.task
(
name
=
'vmdriver.create'
)
@celery.task
(
name
=
'vmdriver.create'
)
def
deploy
(
params
):
def
deploy
(
params
):
pass
pass
...
...
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