php - Completing tasks from many queues sequentially -



php - Completing tasks from many queues sequentially -

i have php + redis queue.

i have 3 queues:

create client (queue name = 'create_client'). create task client (queue name = 'create_task'). send created task client (queue name = 'send_task').

i can send tasks queues independently. example, have client , want create task him. set task queue 'create_task', , done.

but have next issue:

i want 3 tasks successively. first want create client, after creating want create task him , after that, want send task him.

question: how may this.

i have 1 option: set task in queue 'create_client' additional param such as

'create_task' => true

and then, in 'create_client' queue watch:

if ($params['create_task']) { queue::put('create_task', $client_id) }

i don't want this, don't have thought how otherwise.

help me please. give thanks you!

php redis queue

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -