ccao-data / model-res-avm

Automated valuation model for all class 200 residential properties in Cook County (except vacant land and condos)
GNU Affero General Public License v3.0
20 stars 3 forks source link

Disable `build-and-run-model` job status polling and run `cleanup` on branch deletion #156

Closed jeancochrane closed 5 months ago

jeancochrane commented 5 months ago

This PR is the companion of https://github.com/ccao-data/actions/pull/17, making two changes to improve the UX of the build-and-run-model workflow:

  1. Configures the workflow to run on the delete event so that the cleanup step can run in the case of branch deletion
  2. Disables Batch job status polling, since model runs often exceed 6 hours

Note that similar to https://github.com/ccao-data/actions/pull/17, improvement 1 can't be tested until these changes land on the main branch, so I'm planning to test it after merging. See https://github.com/ccao-data/actions/pull/17 for detailed information about testing these changes.