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
|`--concurrent`|`-c`| Number of concurrent package downloads (default: 50) |
133
-
|`--delay`|`-d`| Delay between requests in milliseconds (default: 200) |
134
-
|`--chunk-size`|`-s`| Number of days per chunk (default: 30) |
135
-
|`--backfill`|`-b`| Force scan ALL active packages for gaps |
155
+
| Option | Short | Description |
156
+
|--------|-------|-------------|
157
+
|`--concurrent`|`-c`| Number of concurrent package downloads (default: 50) |
158
+
|`--delay`|`-d`| Delay between requests in milliseconds (default: 200) |
159
+
|`--chunk-size`|`-s`| Number of days per chunk (default: 30) |
160
+
|`--backfill`|`-b`| Force scan ALL active packages for gaps |
136
161
137
-
#### Understanding Fetch Modes
162
+
### Understanding Fetch Modes
138
163
139
-
**Normal mode** (default): Only processes packages where `last_fetched_date < TODAY`. This is efficient for daily updates but may miss gaps if a previous fetch was interrupted.
164
+
**Normal mode** (default): Only processes packages where `last_fetched_date < TODAY`. This is efficient for daily updates but may miss gaps if a previous fetch was interrupted.
140
165
141
-
**Backfill mode** (`--backfill`): Scans ALL active packages regardless of `last_fetched_date`. For each package, it:
142
-
1. Retrieves all existing download dates from the database
143
-
2. Compares against the expected date range (creation date → today)
144
-
3. Identifies and fetches only the missing dates (gaps)
145
-
4. Updates `last_fetched_date` after successful completion
166
+
**Backfill mode** (`--backfill`): Scans ALL active packages regardless of `last_fetched_date`. For each package, it:
167
+
1. Retrieves all existing download dates from the database
168
+
2. Compares against the expected date range (creation date → today)
169
+
3. Identifies and fetches only the missing dates (gaps)
170
+
4. Updates `last_fetched_date` after successful completion
146
171
147
-
Use backfill mode when:
148
-
- You suspect there are gaps in historical data
149
-
- A previous fetch was interrupted by rate limiting (429 errors)
150
-
- You want to verify data completeness for all packages
172
+
Use backfill mode when:
173
+
- You suspect there are gaps in historical data
174
+
- A previous fetch was interrupted by rate limiting (429 errors)
175
+
- You want to verify data completeness for all packages
151
176
152
177
153
178
-**Generate Report**: Generate a report based on the fetched data.
0 commit comments