Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
celery/celery
66laps/celery
AdrianRibao/celery
CoolCold/celery
DXist/celery
FreakTheMighty/celery
GunioRobot/celery
HonzaKral/celery
Ignas/celery
Iroiso/celery
Mocramis/celery
OddBloke/celery
PiotrSikora/celery
Rundll/celery
SeanOC/celery
StefanKjartansson/celery
WoLpH/celery
a5an0/celery
aaronelliotross/celery
abecciu/celery
acdha/celery
ackdesha/celery
aclowes/celery
adamend/celery
akabos/celery
akipom/celery
alessandrod/celery
aleszoulek/celery
aliscott/celery
amplify-education/celery
andrewwatts/celery
anh/celery
ask/celery
avinash011/celery
axiak/celery
balboah/celery
berg/celery
bfirsh/celery
bmihelac/celery
bodbdigr/celery
bradjasper/celery
cangove/celery
catalanojuan/celery
clayg/celery
clvrobj/celery
coderanger/celery
colinhowe/celery
csinchok/celery
cupcicm/celery
cwebber/celery
d4n13lbc/celery
davidmiller/celery
davidstrauss/celery
dcramer/celery
dctrwatson/celery
dhepper/celery
djfroofy/celery
dln/celery
dmarkey/celery
dmishe/celery
dpwhite2/celery
drx/celery
dtran320/celery
e98cuenc/celery
eka/celery
eldondev/celery
enlavin/celery
errord/celery
evildmp/celery
f0rk/celery
fberger/celery
fireantology/celery
flaper87/celery
frac/celery
fredj/celery
gcachet/celery
georgedorn/celery
gregglind/celery
greghaskins/celery
harmv/celery
hekevintran/celery
heyman/celery
hghazal/celery
iancmcc/celery
idan/celery
idealopamp/celery
imankulov/celery
ionelmc/celery
ivirabyan/celery
jasonbaker/celery
jbochi/celery
jcsp/celery
jerem/celery
jiangzhonghui/celery
jkozera/celery
jonozzz/celery
jpellerin/celery
jsaxon-cars/celery
jterrace/celery
jude/celery
juil/celery
justinlynn/celery
kanu/celery
kenshinx/celery
kkung/celery
kmike/celery
kuangc/celery
kultus/celery
kyphan/celery
leobantech/celery
lht/celery
liansc/celery
lifeeth/celery
lookfwd/celery
lorenhearsay/celery
lstipakov/celery
luciotorre/celery
macro/celery
marcinkuzminski/celery
markferrer/celery
martinmelin/celery
mattjmorrison/celery
mattlong/celery
mattwilliamson/celery
maxbelanger/celery
maximbo/celery
metzlar/celery
mgmtech/celery
mher/celery
miracle2k/celery
mitar/celery
mitsuhiko/celery
mlavin/celery
molotov/celery
mootpointer/celery
mthurman/celery
mulka/celery
mumrah/celery
netoxico/celery
nibrahim/celery
nik-cars/celery
offbyone/celery
ojii/celery
omgbebebe/celery
orb/celery
paltman/celery
pankajmore/celery
pcardune/celery
peplin/celery
pmarti/celery
prabhat246/celery
psnj/celery
public/celery
pvanderlinden/celery
r4vi/celery
rahulkmr/celery
rferolino/celery
rgaiser/celery
richleland/celery
rlotun/celery
robfitz/celery
rogerhu/celery
runeh/celery
rwillmer/celery
sagematic/celery
sangramanand/celery
sarang4/celery
sbshetty01/celery
screeley/celery
sebleier/celery
sensisoft/celery
shockflash/celery
simonw/celery
skoczen/celery
soymo/celery
steeve/celery
stratoukos/celery
sverrejoh/celery
tarequeh/celery
tayfun/celery
tbarbugli/celery
thaingo/celery
tigrang/celery
tkosmynka/celery
tobych/celery
tomellis/celery
trepca/celery
tsugliani/celery
tswicegood/celery
turingmachine/celery
tutumcloud/celery
ulricheck/celery
vbabiy/celery
vkryachko/celery
washeck/celery
wdmx666/celery
westurner/celery
winhamwr/celery
yrik/celery
zen4ever/celery
Nothing to show
Choose a Head Repository
celery/celery
66laps/celery
AdrianRibao/celery
CoolCold/celery
DXist/celery
FreakTheMighty/celery
GunioRobot/celery
HonzaKral/celery
Ignas/celery
Iroiso/celery
Mocramis/celery
OddBloke/celery
PiotrSikora/celery
Rundll/celery
SeanOC/celery
StefanKjartansson/celery
WoLpH/celery
a5an0/celery
aaronelliotross/celery
abecciu/celery
acdha/celery
ackdesha/celery
aclowes/celery
adamend/celery
akabos/celery
akipom/celery
alessandrod/celery
aleszoulek/celery
aliscott/celery
amplify-education/celery
andrewwatts/celery
anh/celery
ask/celery
avinash011/celery
axiak/celery
balboah/celery
berg/celery
bfirsh/celery
bmihelac/celery
bodbdigr/celery
bradjasper/celery
cangove/celery
catalanojuan/celery
clayg/celery
clvrobj/celery
coderanger/celery
colinhowe/celery
csinchok/celery
cupcicm/celery
cwebber/celery
d4n13lbc/celery
davidmiller/celery
davidstrauss/celery
dcramer/celery
dctrwatson/celery
dhepper/celery
djfroofy/celery
dln/celery
dmarkey/celery
dmishe/celery
dpwhite2/celery
drx/celery
dtran320/celery
e98cuenc/celery
eka/celery
eldondev/celery
enlavin/celery
errord/celery
evildmp/celery
f0rk/celery
fberger/celery
fireantology/celery
flaper87/celery
frac/celery
fredj/celery
gcachet/celery
georgedorn/celery
gregglind/celery
greghaskins/celery
harmv/celery
hekevintran/celery
heyman/celery
hghazal/celery
iancmcc/celery
idan/celery
idealopamp/celery
imankulov/celery
ionelmc/celery
ivirabyan/celery
jasonbaker/celery
jbochi/celery
jcsp/celery
jerem/celery
jiangzhonghui/celery
jkozera/celery
jonozzz/celery
jpellerin/celery
jsaxon-cars/celery
jterrace/celery
jude/celery
juil/celery
justinlynn/celery
kanu/celery
kenshinx/celery
kkung/celery
kmike/celery
kuangc/celery
kultus/celery
kyphan/celery
leobantech/celery
lht/celery
liansc/celery
lifeeth/celery
lookfwd/celery
lorenhearsay/celery
lstipakov/celery
luciotorre/celery
macro/celery
marcinkuzminski/celery
markferrer/celery
martinmelin/celery
mattjmorrison/celery
mattlong/celery
mattwilliamson/celery
maxbelanger/celery
maximbo/celery
metzlar/celery
mgmtech/celery
mher/celery
miracle2k/celery
mitar/celery
mitsuhiko/celery
mlavin/celery
molotov/celery
mootpointer/celery
mthurman/celery
mulka/celery
mumrah/celery
netoxico/celery
nibrahim/celery
nik-cars/celery
offbyone/celery
ojii/celery
omgbebebe/celery
orb/celery
paltman/celery
pankajmore/celery
pcardune/celery
peplin/celery
pmarti/celery
prabhat246/celery
psnj/celery
public/celery
pvanderlinden/celery
r4vi/celery
rahulkmr/celery
rferolino/celery
rgaiser/celery
richleland/celery
rlotun/celery
robfitz/celery
rogerhu/celery
runeh/celery
rwillmer/celery
sagematic/celery
sangramanand/celery
sarang4/celery
sbshetty01/celery
screeley/celery
sebleier/celery
sensisoft/celery
shockflash/celery
simonw/celery
skoczen/celery
soymo/celery
steeve/celery
stratoukos/celery
sverrejoh/celery
tarequeh/celery
tayfun/celery
tbarbugli/celery
thaingo/celery
tigrang/celery
tkosmynka/celery
tobych/celery
tomellis/celery
trepca/celery
tsugliani/celery
tswicegood/celery
turingmachine/celery
tutumcloud/celery
ulricheck/celery
vbabiy/celery
vkryachko/celery
washeck/celery
wdmx666/celery
westurner/celery
winhamwr/celery
yrik/celery
zen4ever/celery
Nothing to show
  • 8 commits
  • 264 files changed
  • 2 commit comments
  • 2 contributors
Commits on May 21, 2018
[WIP] import from asynchronous instead of async and fix python 3.7 co…
…mpat issues (#4679)

* imported from renamed asynchronous module of kombu

* imported from renamed asynchronous module of kombu

* imported from renamed asynchronous module of kombu in utils timer2

* update minimum kombu version
Showing with 1,011 additions and 879 deletions.
  1. +1 −1 .bumpversion.cfg
  2. +1 −1 README.rst
  3. +2 −1 celery/__init__.py
  4. +2 −0 celery/__main__.py
  5. +2 −0 celery/_state.py
  6. +2 −4 celery/app/amqp.py
  7. +1 −0 celery/app/annotations.py
  8. +3 −1 celery/app/backends.py
  9. +17 −24 celery/app/base.py
  10. +1 −0 celery/app/builtins.py
  11. +3 −0 celery/app/control.py
  12. +2 −0 celery/app/defaults.py
  13. +2 −0 celery/app/events.py
  14. +3 −6 celery/app/log.py
  15. +3 −1 celery/app/registry.py
  16. +3 −0 celery/app/routes.py
  17. +3 −2 celery/app/task.py
  18. +23 −20 celery/app/trace.py
  19. +3 −6 celery/app/utils.py
  20. +6 −4 celery/apps/beat.py
  21. +2 −4 celery/apps/multi.py
  22. +2 −6 celery/apps/worker.py
  23. +2 −3 celery/backends/amqp.py
  24. +0 −1 celery/backends/async.py
  25. +12 −18 celery/backends/base.py
  26. +4 −0 celery/backends/cache.py
  27. +4 −0 celery/backends/cassandra.py
  28. +4 −1 celery/backends/consul.py
  29. +5 −0 celery/backends/couchbase.py
  30. +4 −0 celery/backends/couchdb.py
  31. +5 −1 celery/backends/database/models.py
  32. +2 −1 celery/backends/database/session.py
  33. +6 −2 celery/backends/dynamodb.py
  34. +6 −1 celery/backends/elasticsearch.py
  35. +5 −2 celery/backends/filesystem.py
  36. +11 −7 celery/backends/mongodb.py
  37. +1 −2 celery/backends/redis.py
  38. +5 −0 celery/backends/riak.py
  39. +1 −1 celery/backends/rpc.py
  40. +7 −11 celery/beat.py
  41. +3 −5 celery/bin/amqp.py
  42. +8 −14 celery/bin/base.py
  43. +3 −1 celery/bin/beat.py
  44. +2 −0 celery/bin/call.py
  45. +6 −10 celery/bin/celery.py
  46. +4 −2 celery/bin/celeryd_detach.py
  47. +3 −1 celery/bin/control.py
  48. +3 −1 celery/bin/events.py
  49. +3 −0 celery/bin/graph.py
  50. +1 −0 celery/bin/list.py
  51. +2 −0 celery/bin/logtool.py
  52. +1 −0 celery/bin/migrate.py
  53. +3 −0 celery/bin/multi.py
  54. +2 −1 celery/bin/purge.py
  55. +1 −0 celery/bin/result.py
  56. +3 −1 celery/bin/shell.py
  57. +2 −0 celery/bin/upgrade.py
  58. +2 −0 celery/bin/worker.py
  59. +11 −7 celery/canvas.py
  60. +3 −4 celery/concurrency/asynpool.py
  61. +1 −1 celery/concurrency/base.py
  62. +7 −8 celery/concurrency/eventlet.py
  63. +4 −1 celery/concurrency/gevent.py
  64. +5 −5 celery/concurrency/prefork.py
  65. +2 −0 celery/concurrency/solo.py
  66. +1 −0 celery/contrib/abortable.py
  67. +1 −2 celery/contrib/migrate.py
  68. +4 −1 celery/contrib/pytest.py
  69. +3 −0 celery/contrib/rdb.py
  70. +3 −0 celery/contrib/sphinx.py
  71. +4 −2 celery/contrib/testing/app.py
  72. +0 −1 celery/contrib/testing/manager.py
  73. +2 −0 celery/contrib/testing/mocks.py
  74. +1 −0 celery/contrib/testing/tasks.py
  75. +3 −1 celery/contrib/testing/worker.py
  76. +2 −4 celery/events/cursesmon.py
  77. +0 −1 celery/events/dispatcher.py
  78. +2 −0 celery/events/dumper.py
  79. +2 −0 celery/events/event.py
  80. +0 −1 celery/events/receiver.py
  81. +3 −1 celery/events/snapshot.py
  82. +2 −1 celery/events/state.py
  83. +10 −4 celery/exceptions.py
  84. +3 −0 celery/five.py
  85. +3 −5 celery/fixups/django.py
  86. +1 −0 celery/loaders/app.py
  87. +2 −4 celery/loaders/base.py
  88. +3 −0 celery/loaders/default.py
  89. +2 −0 celery/local.py
  90. +5 −4 celery/platforms.py
  91. +3 −6 celery/result.py
  92. +10 −8 celery/schedules.py
  93. +4 −0 celery/security/certificate.py
  94. +2 −0 celery/security/key.py
  95. +3 −3 celery/security/serialization.py
  96. +3 −0 celery/security/utils.py
  97. +1 −0 celery/signals.py
  98. +5 −1 celery/task/base.py
  99. +2 −0 celery/utils/abstract.py
  100. +12 −7 celery/utils/collections.py
  101. +0 −1 celery/utils/debug.py
  102. +4 −1 celery/utils/deprecated.py
  103. +4 −1 celery/utils/dispatch/signal.py
  104. +1 −0 celery/utils/dispatch/weakref_backports.py
  105. +5 −4 celery/utils/encoding.py
  106. +2 −5 celery/utils/functional.py
  107. +4 −1 celery/utils/graph.py
  108. +3 −0 celery/utils/imports.py
  109. +2 −0 celery/utils/iso8601.py
  110. +3 −2 celery/utils/log.py
  111. +3 −0 celery/utils/nodenames.py
  112. +1 −0 celery/utils/objects.py
  113. +0 −2 celery/utils/saferepr.py
  114. +4 −5 celery/utils/serialization.py
  115. +2 −0 celery/utils/sysinfo.py
  116. +3 −1 celery/utils/term.py
  117. +3 −1 celery/utils/text.py
  118. +1 −2 celery/utils/threads.py
  119. +3 −4 celery/utils/time.py
  120. +5 −4 celery/utils/timer2.py
  121. +1 −2 celery/worker/autoscale.py
  122. +4 −3 celery/worker/components.py
  123. +2 −0 celery/worker/consumer/agent.py
  124. +2 −0 celery/worker/consumer/connection.py
  125. +5 −9 celery/worker/consumer/consumer.py
  126. +2 −0 celery/worker/consumer/control.py
  127. +3 −0 celery/worker/consumer/events.py
  128. +1 −1 celery/worker/consumer/gossip.py
  129. +2 −0 celery/worker/consumer/heart.py
  130. +2 −0 celery/worker/consumer/mingle.py
  131. +3 −0 celery/worker/consumer/tasks.py
  132. +0 −1 celery/worker/control.py
  133. +3 −1 celery/worker/heartbeat.py
  134. +4 −1 celery/worker/loops.py
  135. +4 −0 celery/worker/pidbox.py
  136. +6 −7 celery/worker/request.py
  137. +1 −1 celery/worker/state.py
  138. +1 −1 celery/worker/strategy.py
  139. +12 −10 celery/worker/worker.py
  140. +1 −1 docs/includes/introduction.txt
  141. +1 −1 docs/userguide/configuration.rst
  142. +4 −4 docs/userguide/extending.rst
  143. +1 −1 requirements/default.txt
  144. +1 −1 requirements/test.txt
  145. +1 −1 setup.cfg
  146. +5 −3 t/benchmarks/bench_worker.py
  147. +2 −0 t/distro/test_CI_reqs.py
  148. +4 −1 t/integration/conftest.py
  149. +3 −1 t/integration/tasks.py
  150. +3 −0 t/integration/test_canvas.py
  151. +2 −0 t/integration/test_tasks.py
  152. +4 −1 t/unit/app/test_amqp.py
  153. +1 −0 t/unit/app/test_annotations.py
  154. +7 −9 t/unit/app/test_app.py
  155. +2 −0 t/unit/app/test_backends.py
  156. +7 −5 t/unit/app/test_beat.py
  157. +3 −1 t/unit/app/test_builtins.py
  158. +3 −1 t/unit/app/test_celery.py
  159. +2 −0 t/unit/app/test_control.py
  160. +6 −4 t/unit/app/test_defaults.py
  161. +2 −0 t/unit/app/test_exceptions.py
  162. +2 −3 t/unit/app/test_loaders.py
  163. +6 −14 t/unit/app/test_log.py
  164. +2 −0 t/unit/app/test_registry.py
  165. +0 −1 t/unit/app/test_routes.py
  166. +3 −5 t/unit/app/test_schedules.py
  167. +4 −1 t/unit/app/test_utils.py
  168. +7 −5 t/unit/apps/test_multi.py
  169. +3 −5 t/unit/backends/test_amqp.py
  170. +7 −13 t/unit/backends/test_base.py
  171. +7 −5 t/unit/backends/test_cache.py
  172. +5 −2 t/unit/backends/test_cassandra.py
  173. +2 −0 t/unit/backends/test_consul.py
  174. +3 −1 t/unit/backends/test_couchbase.py
  175. +7 −4 t/unit/backends/test_couchdb.py
  176. +3 −5 t/unit/backends/test_database.py
  177. +26 −25 t/unit/backends/test_dynamodb.py
  178. +2 −0 t/unit/backends/test_elasticsearch.py
  179. +2 −3 t/unit/backends/test_filesystem.py
  180. +3 −6 t/unit/backends/test_mongodb.py
  181. +10 −10 t/unit/backends/test_redis.py
  182. +2 −0 t/unit/backends/test_riak.py
  183. +3 −1 t/unit/backends/test_rpc.py
  184. +1 −0 t/unit/bin/celery.py
  185. +3 −7 t/unit/bin/test_amqp.py
  186. +4 −5 t/unit/bin/test_base.py
  187. +6 −4 t/unit/bin/test_beat.py
  188. +5 −2 t/unit/bin/test_call.py
  189. +11 −13 t/unit/bin/test_celery.py
  190. +3 −6 t/unit/bin/test_celeryd_detach.py
  191. +4 −5 t/unit/bin/test_celeryevdump.py
  192. +4 −2 t/unit/bin/test_control.py
  193. +5 −0 t/unit/bin/test_events.py
  194. +2 −0 t/unit/bin/test_list.py
  195. +3 −1 t/unit/bin/test_migrate.py
  196. +7 −2 t/unit/bin/test_multi.py
  197. +3 −1 t/unit/bin/test_purge.py
  198. +3 −1 t/unit/bin/test_result.py
  199. +7 −8 t/unit/bin/test_worker.py
  200. +5 −5 t/unit/compat_modules/test_compat.py
  201. +3 −1 t/unit/compat_modules/test_compat_utils.py
  202. +4 −1 t/unit/compat_modules/test_decorators.py
  203. +2 −0 t/unit/compat_modules/test_messaging.py
  204. +5 −2 t/unit/concurrency/test_concurrency.py
  205. +5 −6 t/unit/concurrency/test_eventlet.py
  206. +3 −5 t/unit/concurrency/test_gevent.py
  207. +4 −2 t/unit/concurrency/test_pool.py
  208. +1 −2 t/unit/concurrency/test_prefork.py
  209. +2 −0 t/unit/concurrency/test_solo.py
  210. +6 −9 t/unit/conftest.py
  211. +2 −1 t/unit/contrib/test_abortable.py
  212. +8 −22 t/unit/contrib/test_migrate.py
  213. +4 −5 t/unit/contrib/test_rdb.py
  214. +1 −0 t/unit/events/test_cursesmon.py
  215. +4 −1 t/unit/events/test_events.py
  216. +2 −0 t/unit/events/test_snapshot.py
  217. +5 −13 t/unit/events/test_state.py
  218. +22 −24 t/unit/fixups/test_django.py
  219. +1 −0 t/unit/security/case.py
  220. +3 −0 t/unit/security/test_certificate.py
  221. +3 −0 t/unit/security/test_key.py
  222. +1 −3 t/unit/security/test_security.py
  223. +2 −2 t/unit/security/test_serialization.py
  224. +7 −15 t/unit/tasks/test_canvas.py
  225. +6 −5 t/unit/tasks/test_chord.py
  226. +1 −0 t/unit/tasks/test_context.py
  227. +15 −24 t/unit/tasks/test_result.py
  228. +2 −0 t/unit/tasks/test_states.py
  229. +1 −2 t/unit/tasks/test_tasks.py
  230. +11 −19 t/unit/tasks/test_trace.py
  231. +5 −11 t/unit/utils/test_collections.py
  232. +2 −0 t/unit/utils/test_debug.py
  233. +2 −0 t/unit/utils/test_deprecated.py
  234. +2 −1 t/unit/utils/test_dispatcher.py
  235. +1 −0 t/unit/utils/test_encoding.py
  236. +9 −16 t/unit/utils/test_functional.py
  237. +2 −0 t/unit/utils/test_graph.py
  238. +4 −8 t/unit/utils/test_imports.py
  239. +6 −8 t/unit/utils/test_local.py
  240. +2 −0 t/unit/utils/test_nodenames.py
  241. +1 −0 t/unit/utils/test_objects.py
  242. +1 −0 t/unit/utils/test_pickle.py
  243. +11 −28 t/unit/utils/test_platforms.py
  244. +7 −5 t/unit/utils/test_saferepr.py
  245. +7 −7 t/unit/utils/test_serialization.py
  246. +3 −1 t/unit/utils/test_sysinfo.py
  247. +3 −1 t/unit/utils/test_term.py
  248. +4 −8 t/unit/utils/test_text.py
  249. +4 −7 t/unit/utils/test_threads.py
  250. +10 −17 t/unit/utils/test_time.py
  251. +4 −1 t/unit/utils/test_timer2.py
  252. +5 −3 t/unit/utils/test_utils.py
  253. +4 −2 t/unit/worker/test_autoscale.py
  254. +2 −0 t/unit/worker/test_bootsteps.py
  255. +2 −0 t/unit/worker/test_components.py
  256. +5 −6 t/unit/worker/test_consumer.py
  257. +5 −7 t/unit/worker/test_control.py
  258. +2 −0 t/unit/worker/test_heartbeat.py
  259. +4 −5 t/unit/worker/test_loops.py
  260. +11 −25 t/unit/worker/test_request.py
  261. +1 −0 t/unit/worker/test_revoke.py
  262. +5 −2 t/unit/worker/test_state.py
  263. +2 −3 t/unit/worker/test_strategy.py
  264. +13 −15 t/unit/worker/test_worker.py
View
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 4.1.0
current_version = 4.1.1
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<releaselevel>[a-z]+)?
View
@@ -2,7 +2,7 @@
|build-status| |license| |wheel| |pyversion| |pyimp|
:Version: 4.1.0 (latentcall)
:Version: 4.1.1 (latentcall)
:Web: http://celeryproject.org/
:Download: https://pypi.python.org/pypi/celery/
:Source: https://github.com/celery/celery/
View
@@ -14,7 +14,7 @@
SERIES = 'latentcall'
__version__ = '4.1.0'
__version__ = '4.1.1'
__author__ = 'Ask Solem'
__contact__ = 'ask@celeryproject.org'
__homepage__ = 'http://celeryproject.org'
@@ -145,6 +145,7 @@ def maybe_patch_concurrency(argv=sys.argv,
from celery import concurrency
concurrency.get_implementation(pool)
# Lazy loading
from . import local # noqa
View
@@ -1,6 +1,8 @@
"""Entry-point for the :program:`celery` umbrella command."""
from __future__ import absolute_import, print_function, unicode_literals
import sys
from . import maybe_patch_concurrency
__all__ = ['main']
View
@@ -7,10 +7,12 @@
This module shouldn't be used directly.
"""
from __future__ import absolute_import, print_function, unicode_literals
import os
import sys
import threading
import weakref
from celery.local import Proxy
from celery.utils.threads import LocalStack
View
@@ -4,13 +4,11 @@
import numbers
import sys
from collections import Mapping, namedtuple
from datetime import timedelta
from weakref import WeakValueDictionary
from kombu import pools
from kombu import Connection, Consumer, Exchange, Producer, Queue
from kombu import Connection, Consumer, Exchange, Producer, Queue, pools
from kombu.common import Broadcast
from kombu.utils.functional import maybe_list
from kombu.utils.objects import cached_property
@@ -522,7 +520,7 @@ def send_task_message(producer, name, message,
# convert to anon-exchange, when exchange not set and direct ex.
if (not exchange or not routing_key) and exchange_type == 'direct':
exchange, routing_key = '', qname
exchange, routing_key = '', qname
elif exchange is None:
# not topic exchange, and exchange not undefined
exchange = queue.exchange.name or default_exchange
@@ -8,6 +8,7 @@
:setting:`task_annotations` setting.
"""
from __future__ import absolute_import, unicode_literals
from celery.five import string_t
from celery.utils.functional import firstmethod, mlazy
from celery.utils.imports import instantiate
View
@@ -1,10 +1,12 @@
# -*- coding: utf-8 -*-
"""Backend selection."""
from __future__ import absolute_import, unicode_literals
import sys
import types
from celery.exceptions import ImproperlyConfigured
from celery._state import current_app
from celery.exceptions import ImproperlyConfigured
from celery.five import reraise
from celery.utils.imports import load_extension_class_names, symbol_by_name
View
@@ -5,7 +5,6 @@
import os
import threading
import warnings
from collections import defaultdict, deque
from operator import attrgetter
@@ -18,42 +17,34 @@
from vine import starpromise
from vine.utils import wraps
from celery import platforms
from celery import signals
from celery._state import (
_task_stack, get_current_app, _set_current_app, set_default_app,
_register_app, _deregister_app,
get_current_worker_task, connect_on_app_finalize,
_announce_app_finalized,
)
from celery import platforms, signals
from celery._state import (_announce_app_finalized, _deregister_app,
_register_app, _set_current_app, _task_stack,
connect_on_app_finalize, get_current_app,
get_current_worker_task, set_default_app)
from celery.exceptions import AlwaysEagerIgnored, ImproperlyConfigured
from celery.five import (
UserDict, bytes_if_py2, python_2_unicode_compatible, values,
)
from celery.five import (UserDict, bytes_if_py2, python_2_unicode_compatible,
values)
from celery.loaders import get_loader_cls
from celery.local import PromiseProxy, maybe_evaluate
from celery.utils import abstract
from celery.utils.collections import AttributeDictMixin
from celery.utils.dispatch import Signal
from celery.utils.functional import first, maybe_list, head_from_fun
from celery.utils.time import timezone
from celery.utils.functional import first, head_from_fun, maybe_list
from celery.utils.imports import gen_task_name, instantiate, symbol_by_name
from celery.utils.log import get_logger
from celery.utils.objects import FallbackContext, mro_lookup
from celery.utils.time import timezone
from .annotations import prepare as prepare_annotations
# Load all builtin tasks
from . import builtins # noqa
from . import backends
from .annotations import prepare as prepare_annotations
from .defaults import find_deprecated_settings
from .registry import TaskRegistry
from .utils import (
AppPickler, Settings,
bugreport, _unpickle_app, _unpickle_app_v2,
_old_key_to_new, _new_key_to_old,
appstr, detect_settings,
)
# Load all builtin tasks
from . import builtins # noqa
from .utils import (AppPickler, Settings, _new_key_to_old, _old_key_to_new,
_unpickle_app, _unpickle_app_v2, appstr, bugreport,
detect_settings)
__all__ = ['Celery']
@@ -1252,4 +1243,6 @@ def timezone(self):
if not conf.timezone:
return timezone.local
return timezone.get_timezone(tz)
App = Celery # noqa: E305 XXX compat
View
@@ -4,6 +4,7 @@
The built-in tasks are always available in all app instances.
"""
from __future__ import absolute_import, unicode_literals
from celery._state import connect_on_app_finalize
from celery.utils.log import get_logger
View
@@ -5,11 +5,14 @@
Server implementation is in :mod:`celery.worker.control`.
"""
from __future__ import absolute_import, unicode_literals
import warnings
from billiard.common import TERM_SIGNAME
from kombu.pidbox import Mailbox
from kombu.utils.functional import lazy
from kombu.utils.objects import cached_property
from celery.exceptions import DuplicateNodenameWarning
from celery.utils.text import pluralize
View
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
"""Configuration introspection and defaults."""
from __future__ import absolute_import, unicode_literals
import sys
from collections import deque, namedtuple
from datetime import timedelta
from celery.five import items, keys, python_2_unicode_compatible
from celery.utils.functional import memoize
from celery.utils.serialization import strtobool
View
@@ -1,6 +1,8 @@
"""Implementation for the app.events shortcuts."""
from __future__ import absolute_import, unicode_literals
from contextlib import contextmanager
from kombu.utils.objects import cached_property
View
@@ -12,7 +12,6 @@
import logging
import os
import sys
from logging.handlers import WatchedFileHandler
from kombu.utils.encoding import set_default_encoding_file
@@ -22,11 +21,9 @@
from celery.five import string_t
from celery.local import class_property
from celery.platforms import isatty
from celery.utils.log import (
get_logger, mlevel,
ColorFormatter, LoggingProxy, get_multiprocessing_logger,
reset_multiprocessing_logger,
)
from celery.utils.log import (ColorFormatter, LoggingProxy, get_logger,
get_multiprocessing_logger, mlevel,
reset_multiprocessing_logger)
from celery.utils.nodenames import node_format
from celery.utils.term import colored
View
@@ -1,10 +1,12 @@
# -*- coding: utf-8 -*-
"""Registry of available tasks."""
from __future__ import absolute_import, unicode_literals
import inspect
from importlib import import_module
from celery._state import get_current_app
from celery.exceptions import NotRegistered, InvalidTaskError
from celery.exceptions import InvalidTaskError, NotRegistered
from celery.five import items
__all__ = ['TaskRegistry']
View
@@ -4,10 +4,13 @@
Contains utilities for working with task routers, (:setting:`task_routes`).
"""
from __future__ import absolute_import, unicode_literals
import re
import string
from collections import Mapping, OrderedDict
from kombu import Queue
from celery.exceptions import QueueNotFound
from celery.five import items, string_t
from celery.utils.collections import lpmerge
View
@@ -8,8 +8,7 @@
from kombu.exceptions import OperationalError
from kombu.utils.uuid import uuid
from celery import current_app, group
from celery import states
from celery import current_app, group, states
from celery._state import _task_stack
from celery.canvas import signature
from celery.exceptions import Ignore, MaxRetriesExceededError, Reject, Retry
@@ -1006,4 +1005,6 @@ def backend(self, value): # noqa
@property
def __name__(self):
return self.__class__.__name__
BaseTask = Task # noqa: E305 XXX compat alias
View
@@ -6,42 +6,43 @@
"""
from __future__ import absolute_import, unicode_literals
# ## ---
# This is the heart of the worker, the inner loop so to speak.
# It used to be split up into nice little classes and methods,
# but in the end it only resulted in bad performance and horrible tracebacks,
# so instead we now use one closure per task class.
# pylint: disable=redefined-outer-name
# We cache globals and attribute lookups, so disable this warning.
# pylint: disable=broad-except
# We know what we're doing...
import logging
import os
import sys
from collections import namedtuple
from warnings import warn
from billiard.einfo import ExceptionInfo
from kombu.exceptions import EncodeError
from kombu.serialization import loads as loads_message, prepare_accept_content
from kombu.serialization import loads as loads_message
from kombu.serialization import prepare_accept_content
from kombu.utils.encoding import safe_repr, safe_str
from celery import current_app, group
from celery import states, signals
from celery import current_app, group, signals, states
from celery._state import _task_stack
from celery.app.task import Task as BaseTask, Context
from celery.exceptions import Ignore, Reject, Retry, InvalidTaskError
from celery.app.task import Context
from celery.app.task import Task as BaseTask
from celery.exceptions import Ignore, InvalidTaskError, Reject, Retry
from celery.five import monotonic, text_t
from celery.utils.log import get_logger
from celery.utils.nodenames import gethostname
from celery.utils.objects import mro_lookup
from celery.utils.saferepr import saferepr
from celery.utils.serialization import (
get_pickleable_exception, get_pickled_exception, get_pickleable_etype,
)
from celery.utils.serialization import (get_pickleable_etype,
get_pickleable_exception,
get_pickled_exception)
# ## ---
# This is the heart of the worker, the inner loop so to speak.
# It used to be split up into nice little classes and methods,
# but in the end it only resulted in bad performance and horrible tracebacks,
# so instead we now use one closure per task class.
# pylint: disable=redefined-outer-name
# We cache globals and attribute lookups, so disable this warning.
# pylint: disable=broad-except
# We know what we're doing...
__all__ = [
'TraceInfo', 'build_tracer', 'trace_task',
@@ -515,6 +516,8 @@ def _trace_task_ret(name, uuid, request, body, content_type,
R, I, T, Rstr = trace_task(app.tasks[name],
uuid, args, kwargs, request, app=app)
return (1, R, T) if I else (0, Rstr, T)
trace_task_ret = _trace_task_ret # noqa: E305
View
@@ -5,7 +5,6 @@
import os
import platform as _platform
import re
from collections import Mapping, namedtuple
from copy import deepcopy
from types import ModuleType
@@ -16,13 +15,11 @@
from celery.five import items, keys, string_t, values
from celery.platforms import pyimplementation
from celery.utils.collections import ConfigurationView
from celery.utils.imports import import_from_cwd, qualname, symbol_by_name
from celery.utils.text import pretty
from celery.utils.imports import import_from_cwd, symbol_by_name, qualname
from .defaults import (
_TO_NEW_KEY, _TO_OLD_KEY, _OLD_DEFAULTS, _OLD_SETTING_KEYS,
DEFAULTS, SETTING_KEYS, find,
)
from .defaults import (_OLD_DEFAULTS, _OLD_SETTING_KEYS, _TO_NEW_KEY,
_TO_OLD_KEY, DEFAULTS, SETTING_KEYS, find)
__all__ = [
'Settings', 'appstr', 'bugreport',
Oops, something went wrong.

Showing you all comments on commits in this comparison.

@auvipy

This comment has been minimized.

Show comment
Hide comment
@auvipy

auvipy May 21, 2018

Member

@thedrow could you look intro this please?

Member

auvipy commented on ed0130c May 21, 2018

@thedrow could you look intro this please?

@thedrow

This comment has been minimized.

Show comment
Hide comment
@thedrow
Contributor

thedrow commented on ed0130c May 22, 2018