josegonzalez / cakephp-queuesadilla

CakePHP3: easily run background jobs on various message backends
https://cakephp-queuesadilla.readthedocs.org/en/latest/
MIT License
34 stars 14 forks source link

WIP: Attach the Worker events to the CakePHP Event System #15

Closed cleptric closed 1 year ago

cleptric commented 7 years ago

This is WIP for implementing #7 I started with the Worker events. Queue is missing, but it's only one event. Also, tests are missing, but I want to discuss this first.

Now you can do sth. like:

use Cake\Event\EventManager;

EventManager::instance()->on('Queue.Worker.job.success', function ($event, $job) {
    debug($job->data['job']);
});
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-8.1%) to 60.0% when pulling bcba5129371a83b6c4275b28a00b56ee98197a81 on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.

josegonzalez commented 7 years ago

Needs docs as well :)

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-8.1%) to 60.0% when pulling 6e5631086441391ad93844a3430da019f20528e2 on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-9.5%) to 58.659% when pulling e05bc22a32f3316cd21cf81f697166de7be60cbb on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 68.354% when pulling 3f5992daa8e82e89c821e8d8d644a6692312c44c on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.

burzum commented 6 years ago

@cleptric any news on this? :(