Update poll_task_status sleep time
This commit is contained in:
parent
4b54a9d234
commit
64e8d4bbc7
2 changed files with 7 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue