@clairejs/server 3.25.2 → 3.25.3
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/README.md +4 -0
- package/dist/job/AwsJobScheduler.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,17 +126,18 @@ let AwsJobScheduler = class AwsJobScheduler extends AbstractJobScheduler {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
async cancelJob(jobId) {
|
|
129
|
+
const ruleId = `${this.jobNamespace}${jobId}`;
|
|
129
130
|
await this.eventbridge
|
|
130
131
|
.removeTargets({
|
|
131
132
|
EventBusName: this.eventBusName,
|
|
132
|
-
Rule:
|
|
133
|
-
Ids: [
|
|
133
|
+
Rule: ruleId,
|
|
134
|
+
Ids: [ruleId],
|
|
134
135
|
})
|
|
135
136
|
.promise();
|
|
136
137
|
await this.eventbridge
|
|
137
138
|
.deleteRule({
|
|
138
139
|
EventBusName: this.eventBusName,
|
|
139
|
-
Name:
|
|
140
|
+
Name: ruleId,
|
|
140
141
|
})
|
|
141
142
|
.promise();
|
|
142
143
|
}
|