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
@George-Spanos changed the app's infrastructure. Now it runs on fly.io and the machines that host the app auto stop if there is not traffic. This makes the app cheaper. As a result, on 12AM each day the app is probably "asleep" so this means that the cron does not run.
Proposed Solution
If the daily pokemon are not refreshed on app start, refresh them, and then bootstrap the app.
Steps
This is what I identified that we need to change for this to work
Add a column to the daily_pokemon table which shows the date which the this specific batch of daily pokemon refer to. Name the column date, I think it's self explained.
Make sure that whenever we add a pokemon to this list we also add the date column with the appropriate value.
Modify the hasDailyPokemon function. This should return false if there are no daily pokemon for the current day the app started. If our logic is correct, they code should remove all daily pokemon and create new ones.
Bug Description
Daily pokemon do not refresh.
Reason
@George-Spanos changed the app's infrastructure. Now it runs on fly.io and the machines that host the app auto stop if there is not traffic. This makes the app cheaper. As a result, on 12AM each day the app is probably "asleep" so this means that the cron does not run.
Proposed Solution
If the daily pokemon are not refreshed on app start, refresh them, and then bootstrap the app.
Steps
This is what I identified that we need to change for this to work
daily_pokemon
table which shows thedate
which the this specific batch of daily pokemon refer to. Name the columndate
, I think it's self explained.date
column with the appropriate value.hasDailyPokemon
function. This should return false if there are no daily pokemon for the current day the app started. If our logic is correct, they code should remove all daily pokemon and create new ones.Let me know if you need any help. @Armaroth
The text was updated successfully, but these errors were encountered: