Skip to content

jobscheduler

Stephen Laws edited this page Jun 20, 2022 · 2 revisions

Job Scheduler

Prerequisite

The Patient service needs to be configured.

Job Scheduler Configuration

cd $GATEWAYHOME/Apps/JobScheduler/src/
code appsetttings.local.json

Add the following text:

{
    "ClientAuthentication": {
        "ClientSecret": "[Ask team for Client Secret]",
        "Username": "[Ask team for Client username]",
        "Password": "[Ask team for Client password]"
    }
}

save the file.

Run Job Scheduler

Command line

cd $GATEWAYHOME/Apps/JobScheduler
dotnet run

VS Code

  • Select the JobScheduler project
  • Say Yes or Accept any popups regarding adding assets for debugging
    • Select the JobScheduler Solution and click Enter which should create a .vscode/launch.json
  • Click F5 or Run/Start Debugging

Visual Studio

  • Right Click on the solution and select Properties
  • Select Multiple startup projects
  • Set JobScheduler action to Start
  • Click Ok
  • Click F5 or Debug/Start Debugging

Visual Studio for Mac

  • Right Click on the solution and select set startup project
  • Ensure that the JobScheduler solution item is checked
  • Click Ok
  • Select Run Menu then Start Debugging

Job Scheduler Verification

  • Open a Chrome session to http://localhost:5005
  • Authenticate with your IDIR
  • Job Scheduler Dashboard displayed
Clone this wiki locally