mosquito-cr / mosquito

A background task runner for crystal applications supporting periodic (CRON) and manually queued jobs
MIT License
227 stars 24 forks source link

Adds mosquito api for Executors #147

Closed robacarp closed 4 weeks ago

robacarp commented 4 weeks ago

Mosquito::Api is a new module designed to facilitate visibility into a running mosquito cluster. This is the first member class of the module, and it allows inspecting a single executor by ID.

The Mosquito::Api is a read-only interface. For an existent Runner::Executor, the API allows querying:

The Runner::Executor checks in with the API through an interface called Observability::Executor, which is the write interface paired with the API.