Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9aac4f3f
authored
Feb 18, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node: replaced Exception to WorkerNotFound
parent
437844f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/vm/models/node.py
+2
-2
No files found.
circle/vm/models/node.py
View file @
9aac4f3f
...
@@ -11,7 +11,7 @@ from celery.exceptions import TimeoutError
...
@@ -11,7 +11,7 @@ from celery.exceptions import TimeoutError
from
model_utils.models
import
TimeStampedModel
from
model_utils.models
import
TimeStampedModel
from
taggit.managers
import
TaggableManager
from
taggit.managers
import
TaggableManager
from
common.models
import
method_cache
from
common.models
import
method_cache
,
WorkerNotFound
from
firewall.models
import
Host
from
firewall.models
import
Host
from
..tasks
import
vm_tasks
from
..tasks
import
vm_tasks
from
.common
import
Trait
from
.common
import
Trait
...
@@ -117,7 +117,7 @@ class Node(TimeStampedModel):
...
@@ -117,7 +117,7 @@ class Node(TimeStampedModel):
if
vm_tasks
.
check_queue
(
self
.
host
.
hostname
,
queue_id
):
if
vm_tasks
.
check_queue
(
self
.
host
.
hostname
,
queue_id
):
return
self
.
host
.
hostname
+
"."
+
queue_id
return
self
.
host
.
hostname
+
"."
+
queue_id
else
:
else
:
raise
Exception
(
"Worker not found."
)
raise
WorkerNotFound
(
)
def
remote_query
(
self
,
task
,
timeout
=
30
,
raise_
=
False
,
default
=
None
):
def
remote_query
(
self
,
task
,
timeout
=
30
,
raise_
=
False
,
default
=
None
):
"""Query the given task, and get the result.
"""Query the given task, and get the result.
...
...
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