forked from gocelery/gocelery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
25 lines (17 loc) · 912 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
Package gocelery is Celery Distributed Itf_CeleryTask Queue in Go
Celery distributed tasks are used heavily in many python web applications and this library allows you to implement
celery workers in Go as well as being able to submit celery tasks in Go.
This package can also be used as pure go distributed task queue.
Supported brokers/backends
* Redis (broker/backend)
* AMQP (broker/backend)
Celery must be configured to use json instead of default pickle encoding. This is because Go currently has no stable
support for decoding pickle objects. Pass below configuration parameters to use json.
CELERY_TASK_SERIALIZER='json'
CELERY_ACCEPT_CONTENT=['json'] # Ignore other content
CELERY_RESULT_SERIALIZER='json'
CELERY_ENABLE_UTC=True
Actually, the newest version (Right now, 2018.11, is v4.2.1) of Celery is configured defaultly to use json serializer.
*/
package gocelery