Is it safe to spawn multiple jobs from a job so workers could start working on any vacant jobs?
Currently my set up is like this. I have 20 workers waiting for any jobs to be pushed. One of the job is to send iOS push notification, the problem with iOS, You can't send bulk messages.
Current: What I made was, a job that gets the list of specific users by batch, get each device token from my db and start sending notification.
Scenario: If one topic has 1000 users, I have to get all 1000 users and their devices and then start sending on each device. This would push a new job on my queue and 1 worker would pick it app, while the other workers are vacant and waits for incoming jobs. What if no jobs would be available for a given time, Worker 1 had to do all the job sending then,
What I working right now. Is it safe if That one big job, would instead create another jobs so other workers who are vacant can pick it up and do the work?
P.S All jobs are running in 1 tube.