Skip to content

Commit

Permalink
update acc to review
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Sep 17, 2024
1 parent 1147216 commit 16f3a2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/apify_client/clients/resource_clients/request_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ def batch_add_requests(
json=list(batch.requests),
)

response_parsed = parse_date_fields(pluck_data(response.json()))

# Retry if the request failed and the retry limit has not been reached.
if not response.is_success and batch.num_of_retries < max_unprocessed_requests_retries:
batch.num_of_retries += 1
Expand All @@ -354,6 +352,7 @@ def batch_add_requests(

# Otherwise, add the processed/unprocessed requests to their respective lists.
else:
response_parsed = parse_date_fields(pluck_data(response.json()))
processed_requests.extend(response_parsed.get('processedRequests', []))
unprocessed_requests.extend(response_parsed.get('unprocessedRequests', []))

Expand Down

0 comments on commit 16f3a2c

Please sign in to comment.