Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fc13dc82
authored
Jan 07, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introducing celeryconfig.py
requirements fix
parent
e8338e96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
celeryconfig.py
+6
-0
requirements/base.txt
+9
-3
storagecelery.py
+4
-2
No files found.
celeryconfig.py
0 → 100644
View file @
fc13dc82
CELERY_RESULT_BACKEND
=
'amqp://'
CELERY_TASK_RESULT_EXPIRES
=
300
CELERY_TIMEZONE
=
'UTC'
CELERY_ENABLE_UTC
=
True
CELERY_ACCEPT_CONTENT
=
[
'pickle'
,
'json'
,
'msgpack'
,
'yaml'
]
requirements/base.txt
View file @
fc13dc82
celery
amqp==1.4.9
requests
anyjson==0.3.3
filemagic
billiard==3.3.0.23
celery==3.1.18
filemagic==1.6
kombu==3.0.30
pytz==2021.3
requests==2.26.0
storagecelery.py
View file @
fc13dc82
...
@@ -21,11 +21,13 @@ celery = Celery('storagedriver',
...
@@ -21,11 +21,13 @@ celery = Celery('storagedriver',
broker
=
AMQP_URI
,
broker
=
AMQP_URI
,
include
=
[
'storagedriver'
])
include
=
[
'storagedriver'
])
celery
.
config_from_object
(
'celeryconfig'
)
celery
.
conf
.
update
(
celery
.
conf
.
update
(
CELERY_RESULT_BACKEND
=
'amqp://'
,
CELERY_TASK_RESULT_EXPIRES
=
30000
,
CELERY_QUEUES
=
(
CELERY_QUEUES
=
(
Queue
(
HOSTNAME
,
Exchange
(
Queue
(
HOSTNAME
,
Exchange
(
'storagedriver'
,
type
=
'direct'
),
routing_key
=
'storagedriver'
),
'storagedriver'
,
type
=
'direct'
),
routing_key
=
'storagedriver'
),
)
)
)
)
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