Skip to content

lucas42/lucos_schedule_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucos_schedule_tracker

Tracks the status of scheduled jobs

Dependencies

  • docker
  • docker-compose

Build-time Dependencies (Installed by Dockerfile)

Ruby 3

Running

nice -19 docker-compose up -d --no-build

Building

The build is configured to run in Dockerhub when a commit is pushed to the main branch in github.

API Schema

/report-status Accepts a POST request with json encoded object containing the following fields:

  • system The lucos system running the scheduled job. (Must be unique - for systems with multiple jobs, append something to distinguish them)
  • frequency A postive integer specifying how often the job should run, in seconds. (The threshold for alerting is double the expected frequency)
  • status The outcome of the scheduled job. Accepts either "success" or "error".
  • message [optional] An error message indicating why the job failed. (ignored if status is "success")

cURL examples:

  • curl "http://localhost:8024/report-status" -H "Content-Type: application/json" -i --data '{"system":"lucos_test","frequency": 45,"status":"success","message":"Good Thing Happened"}'
  • curl "http://localhost:8024/report-status" -H "Content-Type: application/json" -i --data '{"system":"lucos_test","frequency": 45,"status":"error","message":"Failure Happened"}'

About

Tracks the status of scheduled jobs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published