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 a similar spirit to everypolitician/countries_json_updater#5 when we receive a request to rebuild a legislature we should check if there's already a rebuild queued for that legislature. If there is then we don't need to queue the rebuild again.
The text was updated successfully, but these errors were encountered:
This seems like fairly low-hanging fruit as part of speeding the rebuilder up (by reducing some rebuilds to zero!)
Other than a little bit of refactoring we should do to remove the duplication of doing this in two places, is this largely just a matter of replacing the perform_async calls with something that checks RebuilderJob.jobs first to see if there's already something with the same arguments?
Other than a little bit of refactoring we should do to remove the duplication of doing this in two places, is this largely just a matter of replacing the perform_async calls with something that checks RebuilderJob.jobs first to see if there's already something with the same arguments?
Yep, that's pretty much it. I'll add this to my stack, should hopefully be fairly straightforward!
In a similar spirit to everypolitician/countries_json_updater#5 when we receive a request to rebuild a legislature we should check if there's already a rebuild queued for that legislature. If there is then we don't need to queue the rebuild again.
The text was updated successfully, but these errors were encountered: