Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
agentdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e4063248
authored
Mar 03, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix celery hostname
parent
038a99f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
agentdriver.py
+2
-1
No files found.
agentdriver.py
View file @
e4063248
from
celery.apps.worker
import
Worker
from
celery.apps.worker
import
Worker
from
twisted.internet
import
reactor
,
inotify
from
twisted.internet
import
reactor
,
inotify
from
twisted.python
import
filepath
from
twisted.python
import
filepath
from
agentcelery
import
celery
from
agentcelery
import
celery
,
HOSTNAME
from
protocol
import
inotify_handler
from
protocol
import
inotify_handler
from
os
import
getenv
,
listdir
,
path
from
os
import
getenv
,
listdir
,
path
import
logging
import
logging
...
@@ -32,6 +32,7 @@ def reactor_stopped(worker):
...
@@ -32,6 +32,7 @@ def reactor_stopped(worker):
def
main
():
def
main
():
w
=
Worker
(
app
=
celery
,
concurrency
=
1
,
w
=
Worker
(
app
=
celery
,
concurrency
=
1
,
pool_cls
=
'threads'
,
pool_cls
=
'threads'
,
hostname
=
HOSTNAME
+
'.agentdriver'
,
loglevel
=
logging
.
DEBUG
)
loglevel
=
logging
.
DEBUG
)
reactor
.
callInThread
(
w
.
run
)
reactor
.
callInThread
(
w
.
run
)
notifier
=
inotify
.
INotify
(
reactor
)
notifier
=
inotify
.
INotify
(
reactor
)
...
...
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