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
Post a Comment