Kentico - “Send email queue” scheduled task not working Kentico 10.0.50 on Azure

Duc Huynh asked on October 2, 2019 05:28

Hi all, I have a problem with the kentico site on Azure.

I didn't send the email queuse. I figured out that the Scheduled Task didn't run in a long time.

I fixed it by restarting the Scheduled task and it works but this happens again today.

Anyone can help?

Correct Answer

Chau Cao answered on March 13, 2020 10:20

I have experienced the same issue to you. There were not much in email queue. Sometimes there's only one email which send OTP to admin. We had to fix by writing a custom schedule task which force send emails.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Dmitry Bastron answered on October 2, 2019 10:34

Hi Duc,

Is this "Send queued emails" enabled and scheduled to be run for every minute (but don't run actually)? Or has it become disabled with no reason? Is there anything in the Event Log?

0 votesVote for this answer Mark as a Correct answer

Duc Huynh answered on October 2, 2019 11:05

Hi Dmitry,

Is this "Send queued emails" enabled and scheduled to be run for every minute (but don't run actually)? => yes, it is running but it stopped working yesterday even it is enabled and there is a Next Run Time ( but this time is 2 days ago).

Is there anything in the Event Log? => I didn't see anything in the Event Log. It seems the task is in processing forever so you can't start/stop or run it manually.

Did you see that problem before? It happened to me twice.

Thanks, Duc Huynh

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on October 2, 2019 11:15 (last edited on October 2, 2019 11:19)

When it was in a hanging state, did you see this a a thread in Debug Application? Next time it happens you can open Debug - Working Threads and check if the task thread is actually running.

Also, I would recommend in this case taking the memory dump of running application and submit it to Kentico support, probably they will be able to investigate in further.

And another thing to check, are you using Kentico Continuous Integration or Staging to sync Scheduled Tasks? Probably theis task may become broken after sync from another system (test or dev).

0 votesVote for this answer Mark as a Correct answer

Duc Huynh answered on October 3, 2019 04:16

Thanks for your answer.

I checked more with Kentico hotfix and found this one: "Scheduler - Incorrect next run time for tasks running on specific days of the week If a scheduled task was configured to run only on specific days of the week, the 'Next run' time was calculated incorrectly under certain circumstances." 11.0.39

So this hotfix relates to my issue on 10.0.50? Can you more detail about the issue which fixed by hotfix 11.0.39.

I think it could be my case. Because the next run didn't work on my website.

Thanks, Duc Huynh

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 7, 2019 18:19

Duc,

How many emails are in the task to send? If there are hundreds or thousands, it may be "stuck" on trying to process them all. So change your batch settings to something small like 50 or so. If there are only a few in the queue, are there any which have failed? If so, try to individually send those. If you can individually send them, attempt to delete them.

Email queue, is a bit touchy in versions prior to 11.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.