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
5758a9e7
authored
Apr 10, 2014
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix grammar
parent
991984db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/vm/models/node.py
+4
-4
No files found.
circle/vm/models/node.py
View file @
5758a9e7
...
@@ -147,10 +147,10 @@ class Node(OperatedMixin, TimeStampedModel):
...
@@ -147,10 +147,10 @@ class Node(OperatedMixin, TimeStampedModel):
@method_cache
(
30
)
@method_cache
(
30
)
def
get_remote_queue_name
(
self
,
queue_id
):
def
get_remote_queue_name
(
self
,
queue_id
):
"""Return the name of the remote celery queue for this node.
"""Return
s
the name of the remote celery queue for this node.
t
hrows Exception if there is no worker on the queue.
T
hrows Exception if there is no worker on the queue.
Until the cache provide reult there can be dead queues
.
The result may include dead queues because of caching
.
"""
"""
if
vm_tasks
.
check_queue
(
self
.
host
.
hostname
,
queue_id
):
if
vm_tasks
.
check_queue
(
self
.
host
.
hostname
,
queue_id
):
...
@@ -172,7 +172,7 @@ class Node(OperatedMixin, TimeStampedModel):
...
@@ -172,7 +172,7 @@ class Node(OperatedMixin, TimeStampedModel):
else
:
else
:
logger
.
debug
(
"The last activity was
%
s"
%
act
)
logger
.
debug
(
"The last activity was
%
s"
%
act
)
if
act
.
activity_code
.
endswith
(
"offline"
):
if
act
.
activity_code
.
endswith
(
"offline"
):
act
=
NodeActivity
.
create
(
code_suffix
=
'monitor_succes_online'
,
act
=
NodeActivity
.
create
(
code_suffix
=
'monitor_succes
s
_online'
,
node
=
self
,
user
=
None
)
node
=
self
,
user
=
None
)
act
.
started
=
timezone
.
now
()
act
.
started
=
timezone
.
now
()
act
.
finished
=
timezone
.
now
()
act
.
finished
=
timezone
.
now
()
...
...
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