Repository navigation
Fetch feeds directly on the Heroku scheduler - #1733
Merged
Merged
Conversation
**What** Have the Heroku setup page and docs schedule `rake fetch_feeds` instead of `rake lazy_fetch`, and remove `lazy_fetch` and the `APP_URL` step. Drop the unused `WORKER_EMBEDDED` and `WORKER_RETRY` settings from `app.json`. Add a `CHANGELOG.md` with date headings, and note in `AGENTS.md` when to add entries. **Why** `lazy_fetch` only queued jobs, which run in the web process. When the web dyno was asleep, nothing ran them, so feeds never updated unless `APP_URL` was set to wake it. The Deploy button didn't set `APP_URL`. `fetch_feeds` fetches in the scheduler's own dyno. Fixes #647 **Notes** Breaking for anyone scheduling `rake lazy_fetch`; the changelog says how to switch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Have the Heroku setup page and docs schedule
rake fetch_feedsinsteadof
rake lazy_fetch, and removelazy_fetchand theAPP_URLstep.Drop the unused
WORKER_EMBEDDEDandWORKER_RETRYsettings fromapp.json.Add a
CHANGELOG.mdwith date headings, and note inAGENTS.mdwhento add entries.
Why
lazy_fetchonly queued jobs, which run in the web process. When theweb dyno was asleep, nothing ran them, so feeds never updated unless
APP_URLwas set to wake it. The Deploy button didn't setAPP_URL.fetch_feedsfetches in the scheduler's own dyno.Fixes #647
Notes
Breaking for anyone scheduling
rake lazy_fetch; the changelog sayshow to switch.