Update poll_task_status sleep time

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-28 19:39:40 -03:00
commit 64e8d4bbc7
2 changed files with 7 additions and 5 deletions

View file

@ -24,7 +24,7 @@ def run_post(client, flow_id, headers, post_data):
# Helper function to poll task status
def poll_task_status(client, headers, href, max_attempts=20, sleep_time=3):
def poll_task_status(client, headers, href, max_attempts=20, sleep_time=2):
for _ in range(max_attempts):
task_status_response = client.get(
href,