- Issue created by @ramlev
- π©π°Denmark ramlev
Have to say, i have another event that subscribes to that event, and it fires ok, but not the one from this module.
- πΊπ¦Ukraine marchuk.vitaliy Rivne, UA
@ramlev
Set a breakpoint in theEmailSubscriber::onRequest()
and see if it runs. - π©π°Denmark ramlev
@vmarchuk not if executed with drush but from UI, yes.
- πΊπ¦Ukraine marchuk.vitaliy Rivne, UA
@ramlev
I see this too, it's because$events[KernelEvents::REQUEST][] = ['onRequest', 900];
doesn't fire when you run the drush command manually. Can you try setting a cron job to run every 5 minutes (with ultimate_cron or with something similar) and let it process your queue? In the case of a cron job, onRequest should run and process your queue. Let me know the results of this test, in theory it should work. - π©π°Denmark ramlev
As explained in my bad english, it works when fired through cron. When advancedqueue hook_cron is fired, it works but not from drush.
- πΊπ¦Ukraine marchuk.vitaliy Rivne, UA
@ramlev
So in production or whatever, the queue won't be processed by cron (but how then)? If you only have trouble testing this locally (by running the drush command manually), then you need to use the ways it will work in production. As I told you before, it won't work when you run
drush advancedqueue:queue:process myqueue
manually, and that's expected. - Status changed to Closed: works as designed
9 months ago 10:33am 14 February 2024