Skip to content

Commit 4f3c17b

Browse files
change concurrency of create/delete annotations to 1 (#427)
1 parent 4080142 commit 4f3c17b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/interface/cli/commands/annotation/annotation.logic.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const Promise = require('bluebird');
66
const { sdk } = require('../../../../logic');
77

88
class AnnotationLogic {
9-
109
static async listAnnotations({ entityId, entityType, labels }) {
1110
let annotations = [];
1211
try {
@@ -38,12 +37,12 @@ class AnnotationLogic {
3837
}
3938

4039
const annotations = AnnotationLogic._parseAnnotations(labels);
41-
return Promise.map(annotations, ({ key, value }) => sdk.annotations.create({ entityId, entityType, key, value }));
40+
return Promise.map(annotations, ({ key, value }) => sdk.annotations.create({ entityId, entityType, key, value }), { concurrency: 1 });
4241
}
4342

4443
static deleteAnnotations({ entityId, entityType, labels }) {
4544
if (!_.isEmpty(labels)) {
46-
return Promise.map(labels, key => sdk.annotations.delete({ entityId, entityType, key }));
45+
return Promise.map(labels, key => sdk.annotations.delete({ entityId, entityType, key }), { concurrency: 1 });
4746
}
4847

4948
return sdk.annotations.delete({ entityId, entityType });

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.44.0",
3+
"version": "0.45.0",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)