@rubytech/taskmaster 1.0.40 → 1.0.41
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/dist/agents/system-prompt.js +6 -1
- package/dist/build-info.json +3 -3
- package/dist/control-ui/assets/{index-RlAacvDz.js → index-kKBJzIuf.js} +172 -172
- package/dist/control-ui/assets/index-kKBJzIuf.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/cron/service/jobs.js +6 -0
- package/package.json +1 -1
- package/dist/control-ui/assets/index-RlAacvDz.js.map +0 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>Taskmaster Control</title>
|
|
7
7
|
<meta name="color-scheme" content="dark light" />
|
|
8
8
|
<link rel="icon" type="image/png" href="./favicon.png" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-kKBJzIuf.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="./assets/index-BfV0Mtl7.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
@@ -25,6 +25,12 @@ export function computeJobNextRunAtMs(job, nowMs) {
|
|
|
25
25
|
return undefined;
|
|
26
26
|
return job.schedule.atMs;
|
|
27
27
|
}
|
|
28
|
+
// For "every" schedules without an explicit anchor, use the job's creation
|
|
29
|
+
// time so the schedule stays grid-aligned across daemon restarts. Without
|
|
30
|
+
// this, each restart pushes the next run to now + everyMs, causing drift.
|
|
31
|
+
if (job.schedule.kind === "every" && job.schedule.anchorMs == null) {
|
|
32
|
+
return computeNextRunAtMs({ ...job.schedule, anchorMs: job.createdAtMs }, nowMs);
|
|
33
|
+
}
|
|
28
34
|
return computeNextRunAtMs(job.schedule, nowMs);
|
|
29
35
|
}
|
|
30
36
|
export function recomputeNextRuns(state) {
|