Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
88778a32
authored
Mar 03, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-fix-celery' into 'master'
Feature fix celery See merge request
!7
parents
94b6493c
d04f15e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
11 deletions
+5
-11
docs/install-node.rst
+0
-1
netcelery.py
+1
-3
requirements/base.txt
+3
-4
vmcelery.py
+1
-3
No files found.
docs/install-node.rst
View file @
88778a32
...
...
@@ -77,7 +77,6 @@ Save configuration to virtualenv and activate environment::
export LIBVIRT_URI=test:///default
export AMQP_URI=amqp://cloud:password@$(hostname)/circle
export HYPERVISOR_TYPE=test
export CACHE_URI=pylibmc://$(hostname):11211/
END
Copy the libvrit bindings to the local virtualenv directory::
...
...
netcelery.py
View file @
88778a32
...
...
@@ -17,7 +17,6 @@ if HOSTNAME is None:
"Hostname format must be hostname.module.priority."
)
AMQP_URI
=
getenv
(
'AMQP_URI'
)
CACHE_URI
=
getenv
(
'CACHE_URI'
)
def
to_bool
(
value
):
...
...
@@ -37,8 +36,7 @@ celery = Celery('netcelery',
include
=
[
'netdriver'
])
celery
.
conf
.
update
(
CELERY_RESULT_BACKEND
=
'cache'
,
CELERY_CACHE_BACKEND
=
CACHE_URI
,
CELERY_RESULT_BACKEND
=
'amqp'
,
CELERY_TASK_RESULT_EXPIRES
=
300
,
CELERY_QUEUES
=
(
Queue
(
HOSTNAME
,
Exchange
(
...
...
requirements/base.txt
View file @
88778a32
celery==3.
0.23
celery==3.
1.17
decorator==3.4.0
lxml==3.
2.3
lxml==3.
4.2
psutil==1.1.3
Pillow==2.3.0
pylibmc==1.2.3
GitPython
GitPython==0.3.6
vmcelery.py
View file @
88778a32
...
...
@@ -24,7 +24,6 @@ else:
"Hostname format must be hostname.module.priority."
)
AMQP_URI
=
getenv
(
'AMQP_URI'
)
CACHE_URI
=
getenv
(
'CACHE_URI'
)
# Global configuration parameters declaration
...
...
@@ -42,8 +41,7 @@ celery = Celery('vmcelery',
include
=
[
'vmdriver'
])
celery
.
conf
.
update
(
CELERY_RESULT_BACKEND
=
'cache'
,
CELERY_CACHE_BACKEND
=
CACHE_URI
,
CELERY_RESULT_BACKEND
=
'amqp'
,
CELERY_TASK_RESULT_EXPIRES
=
300
,
CELERY_QUEUES
=
(
Queue
(
HOSTNAME
,
Exchange
(
...
...
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