guardian
guardian copied to clipboard
ability to trigger jobs through API end point
Summary
support ability to trigger jobs such as grant_expiration_reminder
& grant_expiration_revocation
through an API endpoint whenever needed instead of only at a pre-determined cron schedule.
we can setup an API for this POST /jobs/:name/run
with request body accepting interface{}
because each job can have different parameters.
Additionally, existing ImportGrants
and ImportActivities
can also be treated as job, and triggered through that API as well.