Developer forum

Forum » Integration » Integration.JobFinished not called

Integration.JobFinished not called

Anders Ebdrup
Reply

Hi Dynamicweb,

 

I have an issue where the observer: Integration.JobFinished does not seems to be executed when a job is started by the scheduled tasks, but only by executing an integration job directly.

Can this be true and if so, can this be changed?

At the same time with have "Auto mapping" selected then I have 468 tables in this list: jobFinishedIntegrationArgs.DestinationTables. Can this be changed only to include the tables that have actually been updated?

 

Best regards, Anders

 


Replies

 
Morten Snedker
Reply

Hi Anders,

With this little snippet

namespace Integration.JobFinished
{
    [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.Integration.JobFinished)]
    public class JobFinishedObserver1 : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            Dynamicweb.Notifications.Integration.JobFinishedIntegrationArgs integrationArgs = args as Dynamicweb.Notifications.Integration.JobFinishedIntegrationArgs;
            Dynamicweb.Information.Logger.LogGeneral("debug", "Job finished");
        }
    }
}

I tried

  • Running job manually
  • Running job from URL (using URL builder)
  • Running job from scheduled task

And all three both as synchronous and asynchronous. In all six scenarios entries were written to my log. So I cannot reproduce the error you're describing. Could you by any chance elaborate with some more specifics?

 

Best regards
Morten Snedker

 

 
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Anders

The problem TFS#24287 "JobFinished notification doesn't work when using ImprtDataWithCustomXmlRequestScheduledTask" has now been fixed in version 8.8.1.7

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

Votes for this answer: 1

 

You must be logged in to post in the forum