starter-scheduled-job is a Scheduled Job starter project for DNN Platform (formerly known as DotNetNuke) made by and for the DNN Community.
Clone this repo into a clean directory of your choice.
git clone https://github.com/DNNCommunity/starter-scheduled-job.git .
Use dnn-cli, which is available as an npm package. dnn-cli it can be installed via yarn or npm.
...via yarn:
yarn global add @dnncommunity/dnn-cli
...via npm:
npm install -g @dnncommunity/dnn-cli
Once dnn-cli is installed, this starter project can be installed into an empty directory of your choice.
cd <directory path>
dnn scheduled-job
- Install DNN in a
.\Website
folder (root of directory in which this project is cloned) - Open solution file in Visual Studio 2019 (Run as Adminstrator...)
- Build in
Debug
orRelease
mode
By default this will compile the project and deploy it to the .\Website
folder.
- DLL and PDB files will be deployed to
.\Website\bin
- All other relevant files will be deployed to
.\Website\DesktopModules\ScheduledJobs\starter-scheduled-job
By default this will create an install package and place in .\Website\Install\Library
so it will be in Available Extensions within DNN (SETTINGS > Extensions > Available Extensions).
To implement the scheduled job, add the following information to a new Task to SETTINGS > Scheduler within DNN while logged in as a SuperUser.
- Friendly Name: Starter Scheduled Job
- Full Class Name and Assembly: starter_scheduled_job.StarterScheduledJob, starter-scheduled-job
- Retain Schedule History: 5
- Frequency: 60 Seconds (for quick testing purposes)
- Retry TimeLapse: 15 Seconds (for quick testing purposes)
- Enable Schedule: On
In practice, the above will vary depending on use case.
Pull requests are welcome. Please open an issue first to document the bug or enhancement details.