Make my queue worker create other queue tasks, is this viable?
Jamroom Developers
Definitely is viable and is done in other locations. But make sure you don't pass in the queue_id as part of the data (think that's automatically filtered out now, but was a bug for a while)
Check out the function jrNewsLetter_prep_newsletter_worker($_queue) function, it does what you're thinking.
the reason you want to unset($_queue['queue_id']); before creating the 'sub' queue is because there are checks to see if a queue_id exists then do something, so if you pass the parents one in it can cause issues for the child worker thinking the queue is complete when its not.
updated by @michael: 01/14/18 01:54:55PM
