July 15, 2011

New module on trac

Here is my first contribution in association with the LBi to the Shared Source library.
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.

4 comments:

  1. Nice tool, thanks!

    A 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.

    ReplyDelete
  2. On some environments (all Sitecore 7) I get the following exception when I execute a schedule:

    ManagedPoolThread #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?

    ReplyDelete
  3. Can we have any progress bar when execute the scheduler?

    ReplyDelete
  4. Hello,
    I 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

    ReplyDelete