Bonjour,
After injecting mails using the /admin/email/handle_mail API endpoint, the mails are scheduled for processing. Is there an API endpoint to wait until the queue drained? Or get the size of the queue?
Cheers
Bonjour,
After injecting mails using the /admin/email/handle_mail API endpoint, the mails are scheduled for processing. Is there an API endpoint to wait until the queue drained? Or get the size of the queue?
Cheers
What problem are you experiencing that you are trying to solve?
I’m not sure what you’re asking? Is there something ambiguous about the problem expressed above?
You ask for a solution. It’s not clear what the problem is. Mostly those messages are processed pretty quickly and it’s not an issue. I think that if they are queued you might get the list from sidekiq.
Why do you need the list of queued messages? Mostly no queue exists.
You are mistaken: mail processing is asynchronous and queued, reason why it makes sense to wait for the queue to drain.
I don’t think we expose any API for that at the moment. The closest thing we have would be the Sidekiq Web UI for the default queue where this job will wait at /sidekiq/queues/default
Since the processing of emails is sequential, the following workaround works:
topic['id']
from the search resultsThis topic was automatically closed 30 days after the last reply. New replies are no longer allowed.