guardian icon indicating copy to clipboard operation
guardian copied to clipboard

ability to trigger jobs through API end point

Open bsushmith opened this issue 2 years ago • 1 comments

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.

bsushmith avatar Nov 25 '22 09:11 bsushmith

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.

rahmatrhd avatar Feb 20 '23 03:02 rahmatrhd