http://trac.sitecore.net/ScheduledTaskUtils
This module allows you to run manually a sitecore scheduler. This is very useful especially when you try to debug a scheduler.
Here is a small screenshot
If you have some bug of improvement request, you can post a reply to this post.
Nice tool, thanks!
ReplyDeleteA possible improvement might be enabling editing the Schedule of a task.
I for one forget what the 20090326T112200|20990426T112200|127|6:00:00 string means between each time i edit a task.
On some environments (all Sitecore 7) I get the following exception when I execute a schedule:
ReplyDeleteManagedPoolThread #10 11:47:19 ERROR Exception
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Jobs.Job.ThreadEntry(Object state)
Nested Exception
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Sitecore.Kernel
at Sitecore.Web.UI.Sheer.ClientPage..ctor()
at Sitecore.Context.get_ClientPage()
at Sitecore.LBi.ScheduledTaskUtils.ScheduledTaskUtils.FillItemList()
at Sitecore.LBi.ScheduledTaskUtils.ScheduledTaskUtils.Refresh()
at Sitecore.LBi.ScheduledTaskUtils.ScheduledTaskUtils.RunScheduler(Item innerItem)
Any idea?
Can we have any progress bar when execute the scheduler?
ReplyDeleteHello,
ReplyDeleteI don't know if it is possible with the Sitecore APi. But, you could probably impleemnt some custom counters.
Btw, now I use the Sitecore powershell in place of my module because they provide multiple ways to run a task (dedicated screen, right click - run, command line, ...) and it is really a great.
Benjamin