Timer Job: Stsadm properties (Office SharePoint Server)
Updated: May 14, 2009
Applies To: Office SharePoint Server 2007
A timer job is defined as service that stores information about logical units of work on a server, and queries it for execution at pre-defined intervals (that is, a time schedule). The phrase time schedule applies to all Web sites on a particular Web application. The scope determines how the job is run. If a job is scoped to the Web server level, it is run for each Web server computer, independently of any other Web servers that might be hosting the same content. If an operation is scoped to the content database level, it is run once for the content database, which means once for the each content database in the entire server or server farm.
When you schedule a timed job, you schedule the beginning time for the job. For example, you can schedule a job to be run daily, beginning between 1:00 A.M. and 2:00 A.M. You always schedule jobs to begin within a time range, rather than at a specific time. This allows the Windows SharePoint Services Timer service (SPTimer), which is described in following paragraphs, to be run at a random time in that range, so that not every server in a server farm is running the scheduled job at the same time. For example, if you set job-change-log-expiration processing to be done during the range 1:00 A.M. to 2:00 A.M., each front-end Web server starts processing the change log sometime between 1:00 and 2:00 A.M.
The Windows SharePoint Services Timer service (SPTimer), a background utility, handles scheduled jobs in Windows SharePoint Services. This utility is installed to your Web server when you set up 1st_WSS_3. The SharePoint Timer service relies on the Gregorian calendar for scheduling. For every job you schedule, you must specify a beginning time for that job based on a 24-hour clock. You specify the time in local time versus an offset from Universal Coordinated Time (UCT), and the time is stored in that format as well.
The dates used by the SharePoint Timer service are not stored in context. This means that you cannot schedule jobs to run every X days/weeks/months/years, where X is greater than 1. So, while you can schedule jobs to run every day, every week, or every month, you cannot schedule a process for every two days, and so on. Neither can you schedule jobs for relative days in a month, such as the third Monday of every month.
The timer job properties are part of the setproperty and getproperty operations. The syntax for the setproperty operation is:
stsadm -o setproperty
-propertyname <property name>
-propertyvalue <property value>
[-url] < http://server_name >
The syntax for the getproperty operation is:
stsadm -o getproperty
-propertyname <property name>
You can substitute -pn for -propertyname and -pv for -propertyvalue.
The following table describes the timerjob properties.
Specifies the time schedule when the change log timer job occurs.
Specifies the time schedule for a cleanup of the Recycle Bin to occur.
Specifies the time schedule for when Customer Experience Improvement Program (CEIP) data is collected.
Specifies the schedule for the configuration refresh job.
Specifies the time schedule when database statistics are collected.
Displays the time schedule of the Windows SharePoint Services Watson Upload job.
Sends the workflow events that have been queued and delivers them to workflows.
Specifies the time schedule for when a scan occurs to delete workflow instance data and workflow task items.
Specifies a schedule for restarting workflow operations that fail because of external reasons.
Lets a site collection be marked as deleted, which immediately prevents any further access to its content.