Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4bbe15b
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
!8
parents
1f336e7d
68cc93e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
docs/install.rst
+0
-1
requirements/base.txt
+2
-3
storagecelery.py
+1
-3
No files found.
docs/install.rst
View file @
d4bbe15b
...
...
@@ -46,7 +46,6 @@ Set up default Storage configuration and activate the virtual environment::
$ cat >>/home/cloud/.virtualenvs/storage/bin/postactivate <<END
export AMQP_URI='amqp://cloud:password@host:5672/circle'
export CACHE_URI='pylibmc://$(hostname):11211/'
END
$ workon storage
$ cd ~/storagedriver
...
...
requirements/base.txt
View file @
d4bbe15b
celery==3.0.23
requests==2.2.1
pylibmc==1.2.3
celery==3.1.17
requests==2.5.3
filemagic==1.6
storagecelery.py
View file @
d4bbe15b
...
...
@@ -16,15 +16,13 @@ if HOSTNAME is None:
"Hostname format must be hostname.module.priority."
)
AMQP_URI
=
getenv
(
'AMQP_URI'
)
CACHE_URI
=
getenv
(
'CACHE_URI'
)
celery
=
Celery
(
'storagedriver'
,
broker
=
AMQP_URI
,
include
=
[
'storagedriver'
])
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