Open shelleydoljack opened 6 months ago
Discussed at standup: we should create a DAG that will run tasks on a monthly basis. This will be the first of many (probably). We should add some sort of email reporting when it is kicked off. Probably should monitor the job for errors.
I think a k8s cronjob would be easier with no coding involved. It would just involve creating a secret with a user and password for a token, and a single pod definition with two curl commands, one to get a token and one to do the post.
Tested that successfully on dev. I am finding out if ops can configure a email alert to tell us if/when a cronjob fails.
Shelley reminded me that there will be other jobs, not just this one, which in that case a DAG could be more useful.
See https://issues.folio.org/browse/MODPATBLK-160
A DAG in libsys-airflow might be too much overhead. We just need:
Maybe a task in folio-tasks? Or a cronjob in k8s cluster?