Can you use CakePHP 3 to create screens to manipulate CRON as SideKiq?

0

Is there any way to create screens to manipulate CRON PHP with CakePHP3 as we have the sidekiq option for Ruby on Rails?

It would be interesting to list the active jobs, and also the option to create new jobs, it would also be interesting to have a job execution log and also an option to restart cron / stop if necessary.

Does anyone know if this is possible, and if there is any example of this?

    
asked by anonymous 28.08.2017 / 15:44

1 answer

2

What you are looking for is a background job solution with a web client.

Sidekiq has a built-in web client to handle tasks that have failed, and even cancel a task before it runs.

For PHP there is Bernard that can be configured in many ways, even with GoogleAppEngine and for it there is a web client called <

If you use Laravel you have a built-in background jobs solution ( Queues ). For this solution in laravel exists Horizon that only works with redis.

For CakePHP 3 as you mentioned the best solution I've ever seen is Queuesadilla from José Gonzalez that maintains the core of CakePHP, but without a web client for handling tasks. In the case of CakePHP 3 I recommend using the Bernard I quoted above.

Already about Scheduled Tasks (Cron) is a separate thing. You could use cron from linux itself, or other solutions in other languages, but in PHP there are some:

I've already used WorkerPHP and it works perfectly. I hope I have helped!

    
12.07.2018 / 19:20