We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment, we enqueue modules to the task queue via these two endpoints:
/poll-and-queue: enqueues new modules from the index
/poll-and-queue
/requeue: enqueues modules with status 50x
/requeue
As a result, when we are are reprocessing modules, new modules might end up taking longer to be proccessed. For example: #39564 and https://gophers.slack.com/archives/C0VPK4Z5E/p1591981603268600.
Rather than calling s.queue.ScheduleFetch in handleIndexAndQueue, we should change the enqueuing logic as follows:
s.queue.ScheduleFetch
Separate /poll-and-queue and /requeue into these two endpoints:
/poll: polls the module index and inserts into module version states
/poll
/enqueue: call postgres.GetNextModulesToFetch to figure out which modules to enqueue next
/enqueue
Change postgres.GetNextModulesToFetch to prioritize enqueuing modules with status=0, ahead of modules with status 50x
Deprecate /poll-and-queue and /requeue
The text was updated successfully, but these errors were encountered:
Related commits:
golang/pkgsite@08e8e66 golang/pkgsite@35d4419
Sorry, something went wrong.
This was fixed by https://golang.org/cl/239480 and deployed.
No branches or pull requests
At the moment, we enqueue modules to the task queue via these two endpoints:
/poll-and-queue
: enqueues new modules from the index/requeue
: enqueues modules with status 50xAs a result, when we are are reprocessing modules, new modules might end up taking longer to be proccessed. For example: #39564 and https://gophers.slack.com/archives/C0VPK4Z5E/p1591981603268600.
Rather than calling
s.queue.ScheduleFetch
in handleIndexAndQueue, we should change the enqueuing logic as follows:Separate
/poll-and-queue
and/requeue
into these two endpoints:/poll
: polls the module index and inserts into module version states/enqueue
: call postgres.GetNextModulesToFetch to figure out which modules to enqueue nextChange postgres.GetNextModulesToFetch to prioritize enqueuing modules with status=0, ahead of modules with status 50x
Deprecate
/poll-and-queue
and/requeue
The text was updated successfully, but these errors were encountered: