Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agentdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
1
Wiki
Members
Activity
Graph
Charts
Create a new issue
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
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
twisted.internet
import
reactor
,
inotify
from
twisted.python
import
filepath
from
agentcelery
import
celery
from
agentcelery
import
celery
,
HOSTNAME
from
protocol
import
inotify_handler
from
os
import
getenv
,
listdir
,
path
import
logging
...
...
@@ -32,6 +32,7 @@ def reactor_stopped(worker):
def
main
():
w
=
Worker
(
app
=
celery
,
concurrency
=
1
,
pool_cls
=
'threads'
,
hostname
=
HOSTNAME
+
'.agentdriver'
,
loglevel
=
logging
.
DEBUG
)
reactor
.
callInThread
(
w
.
run
)
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