stream-framework

How to call a Celery shared_task?

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-08 10:09:31
问题 I'm trying to use stream_framework in my application ( NOT Django ) but I'm having a problem calling the stream_framework shared tasks. Celery seems to find the tasks: -------------- celery@M3800 v3.1.25 (Cipater) ---- **** ----- --- * *** * -- Linux-4.15.0-34-generic-x86_64-with-Ubuntu-18.04-bionic -- * - **** --- - ** ---------- [config] - ** ---------- .> app: task:0x7f8d22176dd8 - ** ---------- .> transport: redis://localhost:6379/0 - ** ---------- .> results: redis://localhost:6379/0 - *

Pickle serialization order mystery

对着背影说爱祢 提交于 2019-12-24 09:56:13
问题 Update 6/8/17 Though 3 years passed, my PR is still pending as a temporary solution by enforcing the output order. Stream-Framework might reconsider its design on using content as key for notifications. GitHub Issue #153 references this. Question See following sample: import pickle x = {'order_number': 'X', 'deal_url': 'J'} pickle.dumps(x) pickle.dumps(pickle.loads(pickle.dumps(x))) pickle.dumps(pickle.loads(pickle.dumps(pickle.loads(pickle.dumps(x))))) Results: (dp0\nS'deal_url'\np1\nS'J'