-
Each job would be an exe with 2 main classes Program and Job
-
Program.Main should simply do the following and nothing more
var job = new Job(); JobRunner.Run(job, args).Wait();
-
Job class must inherit
NuGet.Jobs.Common.JobBase
and implement abstract methodsInit
andRun
-
An
IDictionary<string, string>
is passed toInit
for the job to initialize the member variables -
Edit the project file on a new job and always set
<DefineConstants>TRACE</DefineConstants>
irrespective of configuration -
Also, add a post-build event command line:
move /y App.config <jobName\>.exe.config
-
Also, add settings.job file to mark the job as singleton, if the job will be run as a webjob, and it be a continuously running singleton
This repository has a lot of jobs used for completely different purposes. For this reason, each should should have its own documentation. This specific documentation is far from complete... but you have to start somewhere!
- Monitoring.RebootSearchInstance - check each region for stuck search instances and restart them
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.