CodeIgniter Forums
Feature request: Run a process by id number - CI4/Queue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Feature request: Run a process by id number - CI4/Queue (/showthread.php?tid=91649)



Feature request: Run a process by id number - CI4/Queue - mehmet - 09-11-2024

We queue the processes and make them work well with the help of cron job, but in some cases we may need to keep the cron job duration long, for example once an hour or once a day, and in some processes we may want the queued record to be processed directly.

To give an example for this;
  • Password reset e-mails or sms
  • Single-use code submissions (email and sms)

It would be nice if an id value is returned to us when we save it in the process queue and we can directly start the process according to the id value as a command.

Or

It would be very nice if we can add an additional method that we can run directly at the same time at the time of queuing the process, such as “->run()”.

If there is a different method that I do not know for the subject I mentioned, I would appreciate if you inform me.