Developer forum

Forum » Development » Scheduled tasks question

Scheduled tasks question

Dmitrij Jazel
Reply

Hi guys,

Qustion: When you are creating new scheduled task, how can you set it so that it does search index update, or make it do Assortment index instead?

 

I did read http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Management-Center/System/Scheduled-tasks.aspx

But the "Add in" did not help so much.

Also when I am Impersonating that web-servers top administrator - than creating and running the scheduled task.

It feels like Assortment index update is not running.

 

Q2: Is there a way to trigger Assortment Index update task manually with a URL?

 

Q3: Is the "Add in" the only way to define that the task is "Assortment index update"?


Replies

 
Morten Snedker
Reply

Hi Dmitrij,

You cannot make a URL call to the solution that will trigger neither index update, nor build the assortment index. That has to go through the API. But a homemade aspx/ashx/cshtml will do.

When you say "it feels like" - does that have a somewhat more scientific foundation? :-)

Like: the scheduled job that should run to update the assortment - what does the "Last run" date/time say for this task - has it actually run on its scheduled times?

For a Dynamicweb scheduled task to execute, there should also be a Windows scheduled task that calls the /Admin/Public/TaskExecute.aspx. Does this task run without errors? If not, Dynamicweb scheduled tasks will never be executed.

/Snedker

 
Dmitrij Jazel
Reply

Hello Morten,

Thanks for your reply.

By saying "it feels like" I meant that in administration it says process started, process ended, and eventually complete.

Log file says the same, no items that where affected, no info on what was done. But I can see that the index is not built, the data stays the same.

 

But those tasks are trying to call a process with ID 

http://screencast.com/t/wr0RLFXE69b

Since nothing is happening when url is called, the log just says that process started/ended

 

If I try to use addin

Like in this example here: http://screencast.com/t/BD1EW40Y7IqD

In order to create it I first Impersonated, than attempted to create the task, and task was created.

But this happens when I attempt to run it.

http://screencast.com/t/tO6YbMv5Zi

It says task is complete, but Task log is empty, and assortment index was updated.

 

I do have those processes created in Task Scheduler:

http://screencast.com/t/Ljt39kfLeFi

in Actions tab it says:

Action: Start a program    

Details:C:\[path to application]\Admin\Public\Curl\Curl.exe http://[siteurl]/Admin/Public/TaskExecute.aspx

 

This is what I have in my Event Viewer

http://screencast.com/t/7Y1jKoOPx

 

 
Morten Snedker
Reply

Alright - I've changed my mind. We will proceed on the support case.

/Snedker

 

You must be logged in to post in the forum