playov2-js-utilities 0.3.16 → 0.3.17
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.
|
@@ -34,6 +34,7 @@ if (!PROJECT || !LOCATION) {
|
|
|
34
34
|
* }
|
|
35
35
|
* @param {String} taskId -used as de-duplication key
|
|
36
36
|
* @param {String} requestId
|
|
37
|
+
* @returns {}
|
|
37
38
|
*/
|
|
38
39
|
async function createHttpTask(queueId, payload, messageProcessingProperties, taskId, requestId) {
|
|
39
40
|
|
|
@@ -69,9 +70,10 @@ async function createHttpTask(queueId, payload, messageProcessingProperties, tas
|
|
|
69
70
|
const request = { parent: parent, task: task };
|
|
70
71
|
const [response] = await client.createTask(request);
|
|
71
72
|
|
|
72
|
-
LOGGER.info(requestId, { name: response.name, response }, `Added task to queue ${queueId}}`)
|
|
73
|
+
LOGGER.info(requestId, { name: response.name, response }, `Added task to queue ${queueId}}`);
|
|
74
|
+
return response;
|
|
73
75
|
} catch (err) {
|
|
74
|
-
|
|
76
|
+
throw err;
|
|
75
77
|
}
|
|
76
78
|
};
|
|
77
79
|
|