anbaric-state-machine 1.12.0 → 1.13.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anbaric-state-machine",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "This is the state machine library that one can use to add state management to an application. It will, by default, be locally runnable but can deployed to the Anbaric Cloud via the CLI",
5
5
  "license": "MIT",
6
6
  "author": "chris@anbaric.ai",
@@ -15,8 +15,8 @@
15
15
  "typescript": "^7.0.2"
16
16
  },
17
17
  "dependencies": {
18
- "anbaric-impl-cloud": "^1.12.0",
19
- "anbaric-tsapi": "^1.12.0"
18
+ "anbaric-impl-cloud": "^1.13.0",
19
+ "anbaric-tsapi": "^1.13.0"
20
20
  },
21
21
  "files": [
22
22
  "src"
@@ -113,6 +113,8 @@ class StateMachine {
113
113
  let pristine = true;
114
114
 
115
115
  const job = await this.persistence.retrieve(jobId, this.machineActor);
116
+ if (job.killed) return;
117
+
116
118
  const currentState = this.states.get(job.state);
117
119
 
118
120
  if (currentState?.isTerminal) return;