Skip to content

Configuration

Christoph Rohde edited this page Jul 11, 2023 · 3 revisions

The Timed Action framework is able to configure by an Scheduler.json file.

The Scheduler can be initialized by

  • the path to this file
  • or a std::string the holed the content of the file.

Good to know:
If you initialized the Scheduler with the default constructor,
it use the default values for the initialization.

Example Scheduler.json

  • The following Scheduler.json file hold the default values.
{
  "Scheduler": {
    "Scheduler.json Path": "./Scheduler.json",
    "Date Format": "dd MMM YYYY - HH:MM:SS",
    "Max Threads": "4",
    "Output to std::cout": "true",
    "Enable Blacklists": "true"
  },
  "Watcher": {
    "Watch Interval": "1000"
  },
  "Notification": {
    "Notify": "always"
  },
  "TimedAction": {
    "Enable Callbacks": "true"
  },
  "Cron": {
    "Highlighting incorrect expressions": "true"
  }
}

Clone this wiki locally