PolicyEngine / policyengine-api

PolicyEngine's REST API for computing policy impacts.
GNU Affero General Public License v3.0
11 stars 24 forks source link

Redeploy automatically every ~day #578

Open nikhilwoodruff opened 1 year ago

nikhilwoodruff commented 1 year ago

From app.yaml

anth-volk commented 2 months ago

Seems like (if we move to Cloud Run) this could be a job for Cloud Run jobs - https://codelabs.developers.google.com/codelabs/cloud-starting-cloudrun-jobs#0

nikhilwoodruff commented 2 months ago

@MaxGhenis we decided against this right? Or at least not without precomputing the sims previously calculated. Because it would reset the cache.

MaxGhenis commented 2 months ago

What if we redeploy automatically only if a country package has been updated?

anth-volk commented 2 months ago

We will have auto cache clearing implemented once https://github.com/PolicyEngine/policyengine-core/pull/224 is complete, and we're currently at like 95% completion, so I'm not sure if the automatic redeployment would be beneficial in that situation, either

MaxGhenis commented 2 months ago

I think the goal was for this to replace the automatic version update PRs.