4.20 - Scheduled Tasks not triggering, no errors in log

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 年 前
Hi Axel,
Can you check Type filed value in ScheduleTask table.
It should be {NameSpace_OF_TasckScheduler_Class}.{TaskScheduler_ClassName}
Like
Nop.Plugin.Misk.CustomFuncionality.TaskSchedulers.ClearLogTask




in latest version of nopCommerce, we not need to add plugin namespace by comma after above path.
2 年 前
Hi

I have this for Keep Alive:

2  Keep alive  Nop.Services.Common.KeepAliveTask, Nop.Services  180  1  0
2 年 前
I am using the latest version of nopCommerce and have the same issue.

Has this issue been solved?

I'm running on Ubuntu, nginx with ufw firewall.

I'm not sure where the setting used above for KeepAlive uses 'Nop.Services.Common.KeepAliveTask, Nop.Services 180 1 0'.  What is 180 1 0?

Thanks, David
2 年 前
Same as here
Not working
I don't see the relation between store URL and scheduled tasks how ever I have right values for that.
2 年 前
I apologize for not posting my 'solution'.

I don't remember where I saw this fix, but it involves using s script to update the Type column in the ScheduleTask table to remove Nop.Services. So, for the Send Emails task, the Type becomes

Nop.Services.Messages.QueuedMessagesSendTask

instead of

Nop.Services.Messages.QueuedMessagesSendTask, Nop.Services

I believe I restarted the server after making this change.
2 年 前
rahiqi wrote:
...I don't see the relation between store URL and scheduled tasks how ever I have right values for that.

Because the tasks run in the background and you can think of it as the system "calling" the task's URL.

Be sure you have correct http:// or https:// prefix, and a trailing "/"  - e.g.
https://yourstore.com/

Does your task run OK if you "Run Now"?

Set (run period) to 60 seconds, wait 60+ seconds, and then check the System Log for any errors.
2 年 前
David4908 wrote:
I apologize for not posting my 'solution'.

I don't remember where I saw this fix, but it involves using s script to update the Type column in the ScheduleTask table to remove Nop.Services. So, for the Send Emails task, the Type becomes

Nop.Services.Messages.QueuedMessagesSendTask

instead of

Nop.Services.Messages.QueuedMessagesSendTask, Nop.Services

I believe I restarted the server after making this change.


I can confirm this was the fix I have also applied to fix this issue. I also removed www from the URL, however on reverting back to the URL with www the tasks still run. The database change in my case was the only change necessary.
2 年 前
Go to  
System - System Information - HTTP_HOST
There you will find what you need to fill in as  https://store.url/
2 年 前
And like Rajapaludiya said:

You also have to update the dbo_ScheduleTask table, Type field
Delete the  , Nop.services  part from   Nop.Services.Directory.UpdateExchangeRateTask, Nop.Services
So it become  
Nop.Services.Directory.UpdateExchangeRateTask
Nop.Services.Logging.ClearLogTask
Nop.Services.Caching.ClearCacheTask
Nop.Services.Customers.DeleteGuestsTask
Nop.Services.Common.KeepAliveTask
Nop.Services.Messages.QueuedMessagesSendTask

These are OK already:
Nop.Plugin.Misc.Sendinblue.Services.SynchronizationTask
Nop.Plugin.Tax.Avalara.Services.DownloadTaxRatesTask
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.