You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for the web app to show recent/current statistics, opentransit-metrics/backend/compute_new.py needs to run. This script pulls down the latest vehicle location data from S3 and runs compute_arrivals and compute_stats. The resultant data is put back in S3 for the web app to pick up and use to create data visualizations.
Is it possible to run this yml or run compute_new.py via github actions? From that doc, it looks like the first 2,000 minutes / month are free (or 3,000 if Code for PDX has a pro account):
If Github actions are not possible, what's the cheapest way to run that command daily? Can it run on the same heroku as the web app late at night?
The text was updated successfully, but these errors were encountered:
I created a github action in a forked version of this repo on my person github here - https://github.com/sidetrackedmind/opentransit-metrics-fork/blob/master/.github/workflows/run_compute.yml. I tested it and it seems to work. I'm going to let it run for a few days (weeks?) to get a sense for the timing. My main concern is going over the 20K minute free. I think we'll be fine 🤞 because the process takes ~10 mins. So 10 min / day * 31 days = 3,100 minutes.
If they run smoothly for a while and are not at risk of putting us over the free limit, I'll pull them into this repo so all the actions can run together.
Background
In order for the web app to show recent/current statistics,
opentransit-metrics/backend/compute_new.py
needs to run. This script pulls down the latest vehicle location data from S3 and runscompute_arrivals
andcompute_stats
. The resultant data is put back in S3 for the web app to pick up and use to create data visualizations.The
compute_new.py
used to run on Google Cloud (I think) using this yml:https://github.com/codeforpdx/opentransit-metrics/blob/aba8f77506d93d91f68121569be58974ecdd130a/kubernetes/compute-new-cronjob.yaml
Issue / Ask
Is it possible to run this yml or run
compute_new.py
via github actions? From that doc, it looks like the first 2,000 minutes / month are free (or 3,000 if Code for PDX has a pro account):If Github actions are not possible, what's the cheapest way to run that command daily? Can it run on the same heroku as the web app late at night?
The text was updated successfully, but these errors were encountered: