ServiceName used in logging present in CronService
Returns string
Methods
initialize
initialize():void
Initialize AppService.
Initializes CloudFlare and Docker services
Returns void
job
job():Promise<void>
Fetches labels from docker.
Fetches records from CloudFlare.
Computes additions, updates, deletions and unchanged.
Adds, Updates and Deletes entries from CloudFlare.
Stops the cron job service if the application is shutting down.
Returns void
start
start():Promise<void>
Starts the CRON Job executing.
Will execute "synchronise" immediately on invocation and then every x seconds
as distated by the environment variable EXECUTION_FREQUENCY_SECONDS.
Behaviors to initialize the applications services and execute the synchronization between the docker labels and CloudFlare.