|
20 | 20 |
|
21 | 21 |
|
22 | 22 | SERVER = os.getenv("SERVER")
|
23 |
| -REQUESTS_PARALLEL_COUNT = int(os.getenv("REQUESTS_PARALLEL_COUNT", "8")) |
24 | 23 | BUNDLE_MAX_SIZE_BYTES = int(os.getenv("BUNDLE_MAX_SIZE_BYTES", "20_000_000"))
|
25 | 24 | ENVIRONMENT = os.getenv("ENVIRONMENT", "local")
|
26 | 25 | REALM = os.getenv("REALM", "test")
|
@@ -48,7 +47,7 @@ def fetch_all_changesets(client):
|
48 | 47 | (c["bucket"], c["collection"], c["last_modified"]) for c in monitor_changeset["changes"]
|
49 | 48 | ]
|
50 | 49 | all_changesets = call_parallel(
|
51 |
| - lambda bid, cid, ts: client.get_changeset(bid, cid, ts), args_list, REQUESTS_PARALLEL_COUNT |
| 50 | + lambda bid, cid, ts: client.get_changeset(bid, cid, ts), args_list |
52 | 51 | )
|
53 | 52 | return [
|
54 | 53 | {"bucket": bid, **changeset} for (bid, _, _), changeset in zip(args_list, all_changesets)
|
@@ -194,7 +193,7 @@ def build_bundles(event, context):
|
194 | 193 |
|
195 | 194 | # Fetch all attachments and build "{bid}--{cid}.zip"
|
196 | 195 | args_list = [(f'{base_url}{r["attachment"]["location"]}',) for r in records]
|
197 |
| - all_attachments = call_parallel(fetch_attachment, args_list, REQUESTS_PARALLEL_COUNT) |
| 196 | + all_attachments = call_parallel(fetch_attachment, args_list) |
198 | 197 | write_zip(
|
199 | 198 | attachments_bundle_filename,
|
200 | 199 | [(f'{record["id"]}.meta.json', json.dumps(record)) for record in records]
|
|
0 commit comments