As origins is a generator, the previous behavior would try to consume the overall
generator to send the records.
This groups and sends batch of 100 origins to the scheduler for writing.
Related to T3003#57551
Differential D4965
pattern: Make lister flush regularly origins to scheduler ardumont on Jan 28 2021, 4:55 PM. Authored by
Details
As origins is a generator, the previous behavior would try to consume the overall This groups and sends batch of 100 origins to the scheduler for writing. Related to T3003#57551 tox Plus running the launchpad lister which now runs and writes data alongside the listing From 0 before to growing swh-scheduler=> select now(), count(*) from listed_origins lo inner join listers l on lo.lister_id=l.id and l.name='launchpad' and l.instance_name='launchpad'; now | count -------------------------------+------- 2021-01-28 15:54:50.063613+00 | 18000 (1 row)
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D4965 (id=17720)Rebasing onto f862004700... Current branch diff-target is up to date. Changes applied before testcommit 0ad37740d9d7cfa4a7d75f5c8d5d7568396c1abf Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Thu Jan 28 16:51:56 2021 +0100 pattern: Make lister flush regularly origins to scheduler As origins is a generator, the previous behavior would try to consume the overall generator to send the records. This groups and sends batch of 100 origins to the scheduler for writing. Related to T3003 See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/221/ for more details. Comment Actions Looks good to me ! Nevertheless, errors like T3003#57551 can still appear if there is duplicate origins in the sent list. Comment Actions
yes, indeed and it still happens (that's another task ;) but now we have the other origins flushed already. |