@cuylabs/agent-runtime 3.1.0 → 4.0.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.
@@ -98,7 +98,7 @@ var InMemoryRuntimeDriver = class {
98
98
  }
99
99
  return;
100
100
  }
101
- const nextRunAtMs = computeNextRunAtMs(job.schedule, this.now());
101
+ const nextRunAtMs = job.state.running ? computeNextRunAtMs(job.schedule, this.now()) : job.state.nextRunAtMs ?? computeNextRunAtMs(job.schedule, this.now());
102
102
  if (nextRunAtMs === void 0) {
103
103
  return;
104
104
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InMemoryRuntimeDriver
3
- } from "../chunk-RCSNDSHJ.js";
3
+ } from "../chunk-OELKWU2T.js";
4
4
  import "../chunk-PXXGA4YJ.js";
5
5
  export {
6
6
  InMemoryRuntimeDriver
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InMemoryRuntimeDriver
3
- } from "./chunk-RCSNDSHJ.js";
3
+ } from "./chunk-OELKWU2T.js";
4
4
  import {
5
5
  AgentOrchestrator,
6
6
  InMemoryOrchestratorRunStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuylabs/agent-runtime",
3
- "version": "3.1.0",
3
+ "version": "4.0.0",
4
4
  "description": "Workload runtime orchestration layer - scheduling, execution, and pluggable runtime drivers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",