Custom Schedule Task Execute not Firing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 лет назад
Hi All,

I've created a customer scheduled task and have set it up correctly from what i understand. However the Execute call is now firing.

Version: 3.50

Here is my code.


using System;
using System.Net;
using System.Xml;
using System.Data;
using System.Linq;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;

using Nop.Services.Logging;
using Nop.Services.Tasks;
using Nop.Services.Stores;
using Nop.Services.Customers;
using Nop.Services.Forums;
using Nop.Services.Common;
using Nop.Services.Directory;
using Nop.Core;
using Nop.Core.Domain.Stores;
using Nop.Core.Domain.Messages;
using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Forums;
using Nop.Core.Domain.Common;
using Nop.Core.Domain.Directory;
using Nop.Services.Messages;



namespace Nop.Services.Customers
{
    public partial class UpdateFromAccountingSystemTask : ITask
    {
        private readonly ILogger _logger;

        public UpdateFromAccountingSystemTask(ILogger logger)
        {
            this._logger = logger;
        }


        public virtual void Execute()
        {
            _logger.Information("here");
        }    
    }
}



Database Record:
Type = Nop.Services.Customers.MessagesUpdateFromAccountingSystemTask, Nop.Services


Very simple code just to see it work and it's not :(

I've restarted the app and have restarted IIS and still nothing doing.

Any advice would be appreciated.

Thank you.
7 лет назад
Why is the type MessagesUpdateFromAccountingSystemTask?
7 лет назад
Lam Woon Cherk!!!! THANK YOU FOR YOUR FRESH PAIR OF EYES MAN!!! :)
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU

You just saved me a lot of time. This week we go live with 2 nopCommerce sites and I needed this task to work, to update customers from clients account system to web database.

wow man, big hug and thank you again.

Kindest Regards,
Orion
7 лет назад
Glad I helped. :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.