aio-sf 0.1.0b10__py3-none-any.whl → 0.1.0b11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,29 +126,24 @@ async def process_batches_concurrently(
126
126
  else:
127
127
  errors.append(item)
128
128
 
129
- # Compute current counts dynamically from final_results
130
- if final_results:
131
- records_succeeded = sum(
132
- 1
133
- for r in final_results
134
- if r is not None and r.get("success", False)
135
- )
136
- records_failed = sum(
137
- 1
138
- for r in final_results
139
- if r is not None and not r.get("success", False)
140
- )
141
- records_completed = records_succeeded + records_failed
142
- else:
143
- records_succeeded = records_failed = records_completed = 0
129
+ # Update progress_state cumulatively for per-batch reporting
130
+ # We only count successes as completed here (errors remain pending until final)
131
+ progress_state["records_succeeded"] += len(successes)
132
+ progress_state["records_completed"] += len(successes)
133
+ progress_state["records_pending"] = progress_state[
134
+ "total_records"
135
+ ] - (
136
+ progress_state["records_succeeded"]
137
+ + progress_state["records_failed"]
138
+ )
144
139
 
145
140
  result_info: ResultInfo = {
146
141
  "successes": successes,
147
142
  "errors": errors,
148
143
  "total_records": progress_state["total_records"],
149
- "records_completed": records_completed,
150
- "records_succeeded": records_succeeded,
151
- "records_failed": records_failed,
144
+ "records_completed": progress_state["records_completed"],
145
+ "records_succeeded": progress_state["records_succeeded"],
146
+ "records_failed": progress_state["records_failed"],
152
147
  "records_pending": progress_state["records_pending"],
153
148
  "current_attempt": progress_state["current_attempt"],
154
149
  "current_batch_size": progress_state["current_batch_size"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aio-sf
3
- Version: 0.1.0b10
3
+ Version: 0.1.0b11
4
4
  Summary: Async Salesforce library for Python
5
5
  Project-URL: Homepage, https://github.com/callawaycloud/aio-salesforce
6
6
  Project-URL: Repository, https://github.com/callawaycloud/aio-salesforce
@@ -12,7 +12,7 @@ aio_sf/api/bulk_v2/__init__.py,sha256=TxNM9dFmRX5k57Wj_JnposeEqqd9xcJx78wI-d6VH0
12
12
  aio_sf/api/bulk_v2/client.py,sha256=t2vl8bIIvSrbg5T1mFDm7O4vq0GyDihfkVHamGYnZ7I,6817
13
13
  aio_sf/api/bulk_v2/types.py,sha256=18TN_VMisKJVCvo39q36moYXQhGLRUs73CKWIxBeAcs,1471
14
14
  aio_sf/api/collections/__init__.py,sha256=Loy9PVf7VsFqs9J2s5n6DO1txy6H5xdHU422CnuMkaM,677
15
- aio_sf/api/collections/batch.py,sha256=mRhWBNIvSfgw9tk9PP1DzUmgTdEwB-bThKN8195luH8,14755
15
+ aio_sf/api/collections/batch.py,sha256=9C3r0eUxClOqBi6fsAgN3TVaI4ZOcOPGfO7zlBqXvzc,14656
16
16
  aio_sf/api/collections/client.py,sha256=gR1z3Q5K6iZvcYzJJ6n0azoEdNYp7UdefHMV8jb2RZY,19044
17
17
  aio_sf/api/collections/records.py,sha256=UwI4mjoMkJPBCYbsNUmj5HTBjbGdcaMHT6UiJ4EmcUA,5371
18
18
  aio_sf/api/collections/retry.py,sha256=RXTpMhWyeYsXNiojgEYIVnGtg8S0iYMxgfWgX3APahE,4669
@@ -26,7 +26,7 @@ aio_sf/api/query/types.py,sha256=Wfk75kJpNDCGpTHonCbzjWvayy8guA3eyZp3hE7nBt0,845
26
26
  aio_sf/exporter/__init__.py,sha256=waTegrvw_SvJzREAWD4twSDldSL-HfvhLTLLT1o765o,771
27
27
  aio_sf/exporter/bulk_export.py,sha256=2GtiwXChf7dq7dByGLPDhIJJg-yq9eyoE57H4Ekqaus,13169
28
28
  aio_sf/exporter/parquet_writer.py,sha256=jGiLooxyaqciSDUbXj5F_4uWoR_YrQaB-PrDfRuXR3Y,14495
29
- aio_sf-0.1.0b10.dist-info/METADATA,sha256=jC8DcA0rPFavqImBvSZhqfWNGwVEboglPqmhbXu_J9Y,8282
30
- aio_sf-0.1.0b10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- aio_sf-0.1.0b10.dist-info/licenses/LICENSE,sha256=gu0Cbpiqs-vX7YgJJhGI1jH1mHup3dZMrZc-gmpEG60,1071
32
- aio_sf-0.1.0b10.dist-info/RECORD,,
29
+ aio_sf-0.1.0b11.dist-info/METADATA,sha256=oRytg8N6fOafyfFhHOCAMiYLqIeokqjp_5Rz7yu4aeE,8282
30
+ aio_sf-0.1.0b11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
+ aio_sf-0.1.0b11.dist-info/licenses/LICENSE,sha256=gu0Cbpiqs-vX7YgJJhGI1jH1mHup3dZMrZc-gmpEG60,1071
32
+ aio_sf-0.1.0b11.dist-info/RECORD,,