Visual Studio Team Foundation Server Task Scheduler

The Visual Studio Team Foundation Server Task Scheduler service is a Windows service that runs on servers hosting the logical Team Foundation application-tier. This service provides a general scheduling mechanism for Team Foundation Web services.

Some Team Foundation services have repeating tasks. For example, administrators might want to schedule builds on a nightly basis. To accomplish this, build services must be able to set up an automatically scheduled event in the registration database. The Visual Studio Team Foundation Server Task Scheduler service, also known as TFSServerScheduler, provides a single Windows-based service to schedule repeating tasks on Team Foundation servers. The service runs through the registration database, identifies all Team Foundation Server Web services that have scheduled events, and schedules these tasks.

Instances

Only one instance of the Visual Studio Team Foundation Server Task Scheduler service should be running on any Team Foundation Server application-tier server. By default, the service runs under the service account that you specified when you installed Team Foundation Server. To view the status of this service on an application-tier server, click Start, click Administrative Tools, click Services, and then browse to find the service.

Assumptions and Limitations

The Visual Studio Team Foundation Server Task Scheduler service runs continuously on Team Foundation Server application-tier servers. Administrators should not need to manually stop or start this service except during system recovery. For example, you must stop this service before you restore databases. The service should restart automatically when a server is restarted.

Administrators will not directly configure the Visual Studio Team Foundation Server Task Scheduler service. Tasks that need to be scheduled are configured directly in individual Team Foundation components, such as Team Foundation Build. When an event is added or deleted, the service automatically reconfigures the tasks scheduled in the registration database.

The Visual Studio Team Foundation Server Task Scheduler service will log only one instance of any given error until that error is resolved and a success message is recorded in the Event Log, or until the service is manually restarted. If you want to monitor the Event Log for that error message, you must first stop and restart the service.

The Visual Studio Team Foundation Server Task Scheduler service is not designed to be an all-purpose scheduling mechanism. It is not designed to provide scheduling precision beyond day of the week, hour of the day, and minute of the day. Most administrators will not need to schedule tasks beyond this level of granularity.

See Also

Tasks

Troubleshooting Team Foundation Server Performance Counters

Concepts

Registry Settings in Team Foundation Server Components

Managing and Resetting Service Accounts and Passwords

Other Resources

Monitoring Team Foundation Server