Skip Ribbon Commands
Skip to main content

Robin | zevenseas | SharePoint Blog

:

The zevenseas Community > Blogs > Robin | zevenseas | SharePoint Blog > Posts > Want to configure Timer Jobs ? ;)
July 24
Want to configure Timer Jobs ? ;)

As you might have noticed I’ve been blogging a lot about Application Pages and TimerJob related stuff in the last few months and this post is about those two same things! So apologies for that.. But you might get a smile on your face when you see the following screenshot:

timerjobconfigurator

What have I done and what do you see?

Well, I’ve created yet another application page (YAAP, cool acronym ;) that displays all the current timer job definitions and furthermore it showes for each timer job it’s status. So basically I’ve combined the Timer Job Status page and the Timer Job definitions page. But that wasn’t my main concern to build these pages.. the main concern was to have some more insight in the current defined jobs. Things like, when are they scheduled exactly (when is ‘hourly’ or ‘daily’) and give the administrators the choice to disable and/or delete timerjobs or change the schedule of each one.

Why did I add the option of mass deletion of timerjobs? I’ve seen some farms that when they are using Content Deployment, this service creates a lot of OneTime scheduled timerjobs. When these fail, they are not being deleted properly so it could be that the Timer Job definitions list can be flooded with those OneTime scheduled jobs. So you might want to remove these timerjobs to clean up the definitions list eh? Especially if the Timer service get’s restarted (after a WSP installation for example) then all those one timed jobs are being executed again and will fail again and will stay in the list again..

Why did I add the option of changing the schedule of timerjobs? I’ve seen some farms that had custom timerjobs installed on them but no interface for administrators to change the schedule or to disable the timerjob at all (other then deactivating the feature which came with the solution).

timerjobedit

I also wanted to incorporate a feature that would let you create a new OneTime schedule to kick off a timerjob. Since you cannot change the schedule of a existing timerjob to OneTime schedule (you receive a nice error that tells you, you can’t change the schedule:), I have to create a new instance of that particular timerjob and give that one the OneTime schedule to run. And that ‘creating a new instance of that particular job’ is still a work in progress :)

<Update>

It’s going to be on Codeplex.. but currently I’m getting this message on Codeplex : “Unable to save the release. The TFS server is not available”.. so .. sorry ;)

Meanwhile I’ve uploaded the installer here for you to download and play around with ;)

Get it from CodePlex right here !

</Update>

 

Technorati Tags:

Comments

Isaac

Robin,

Cool stuff, useful too, we've had issues with content deployment, and this may help, especially the one run timer jobs.

Isaac
System Account on 27/07/2009 02:31

Richard

Very nice !

How do you access the pages once they are installed ? Are there entries in Central admin ? or does it replace the current pages ?

Richard
System Account on 30/07/2009 06:00

Suyog Patki

Indeed gr8 job Robin.
Hi Richard,

I think we can provide a feature which can create separate group with Link to the custom page (e.g. the one above) under Application Management or Operation. There is no need to replace the existing pages.

System Account on 30/07/2009 23:09

Robin

Thanks Suyog ;)

@Richard, like Suyog said. Using a feature with a CustomAction in it you can add links to the Central Administration pages.

Check out http://msdn.microsoft.com/en-us/library/ms460194.aspx for more information about this. And http://msdn.microsoft.com/en-us/library/bb802730.aspx on where you can add your custom links.
System Account on 31/07/2009 01:22

jasmine willson

Congratulations! I enjoy reading your blog and find it very useful for the job finder.
Keep up the great work!

Regards
jasmine willson
System Account on 31/07/2009 02:06

Oliver Wirkus

Hi Robin,

good job, very useful! I added your article as a recommended follow-up to my article about "How to create a timerjob".

http://sharepointcommunity.de/blogs/owirkus/archive/2008/06/04/how-to-benutzerdefinierte-timerjobs-die-basics.aspx

Regards,
Oliver
System Account on 10/08/2009 06:48

Nitin Jain

Hi,
I am creating a site defination. This site defiation creates a TimerJob. I want to be this timer is configurable after deployment.
I also want to allow some other custom options, specific to this timer job. Can we add an link inside the site setting and custom aspx page which contains configurable option to change values?
System Account on 01/12/2009 22:12

Looks good.
One question. Why top-nav selection doesn't work? It shows "Home". Should it be "Operations"?
System Account on 01/03/2010 15:46
 

 Statistics

 
Views: 19031
Comments: 8
Tags:
Published:1394 Days Ago