opticedge-cloud-utils 1.1.25 → 1.1.26
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.
- package/dist/task.js +1 -3
- package/package.json +1 -1
- package/src/task.ts +1 -3
package/dist/task.js
CHANGED
|
@@ -81,9 +81,7 @@ async function createTask(projectId, region, queueId, data, serviceAccount, audi
|
|
|
81
81
|
return response.name;
|
|
82
82
|
};
|
|
83
83
|
try {
|
|
84
|
-
|
|
85
|
-
console.log(`✅ Created Cloud Task: ${name}`);
|
|
86
|
-
return name;
|
|
84
|
+
return await (0, retry_1.retry)(() => doCreate(), retryOpts);
|
|
87
85
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
86
|
}
|
|
89
87
|
catch (err) {
|
package/package.json
CHANGED
package/src/task.ts
CHANGED
|
@@ -106,9 +106,7 @@ export async function createTask(
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
try {
|
|
109
|
-
|
|
110
|
-
console.log(`✅ Created Cloud Task: ${name}`)
|
|
111
|
-
return name
|
|
109
|
+
return await retry(() => doCreate(), retryOpts)
|
|
112
110
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
113
111
|
} catch (err: any) {
|
|
114
112
|
// If ALREADY_EXISTS happened (and was not considered retryable), you may prefer to
|