Updating the API functions to make the retry.

This commit is contained in:
Scott Idem
2025-05-07 16:17:34 -04:00
parent 7ea65ee495
commit cdc4ee1af9
2 changed files with 56 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ export let get_object = async function get_object(
// The task_id value should be a random string that is unique to the task. This is used to identify the task in the message event.
task_id = crypto.randomUUID(),
log_lvl = 0,
retry_count = 3 // Number of retry attempts
retry_count = 5 // Number of retry attempts
}: {
api_cfg: any,
endpoint: string,