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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
Hide 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):
@method_cache
(
30
)
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.
Until the cache provide reult there can be dead queues
.
T
hrows Exception if there is no worker on the queue.
The result may include dead queues because of caching
.
"""
if
vm_tasks
.
check_queue
(
self
.
host
.
hostname
,
queue_id
):
...
...
@@ -172,7 +172,7 @@ class Node(OperatedMixin, TimeStampedModel):
else
:
logger
.
debug
(
"The last activity was
%
s"
%
act
)
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
)
act
.
started
=
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