Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
fwdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df89c7aa
authored
3 years ago
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CELERY_RESULT_BACKEND fix (->amqp)
parent
abfd214b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
fw.py
+4
-3
No files found.
fw.py
View file @
df89c7aa
...
...
@@ -17,11 +17,12 @@ AMQP_URI = getenv('AMQP_URI')
celery
=
Celery
(
'tasks'
,)
celery
.
conf
.
update
(
CELERY_TASK_RESULT_EXPIRES
=
300
,
BROKER_URL
=
AMQP_URI
,
CELERY_CACHE_BACKEND
=
CACHE_URI
,
CELERY_RESULT_EXCHANGE_TYPE
=
'direct'
,
CELERY_RESULT_PERSISTENT
=
True
,
CELERY_RESULT_BACKEND
=
'amqp'
,
CELERY_CREATE_MISSING_QUEUES
=
True
)
celery
.
conf
.
update
(
CELERY_CACHE_BACKEND
=
CACHE_URI
,
CELERY_RESULT_BACKEND
=
'cache'
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
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