Q48: each agent's heartbeat interval paces its queued work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5d68ad358
commit
090c37abb8
4 files changed
+61
-6
No files matched your search
@@ -79,7 +79,8 @@ describe("task dependencies", () => {
|
||||
expect(waiting).toHaveLength(1);
|
||||
expect(queuedTasks()).toEqual([childId]);
|
||||
|
||||
h.connection.db.prepare("update task_runs set state = 'completed' where state = 'queued'").run();
|
||||
// Past the CEO's heartbeat interval, so pacing does not hold the parent back.
|
||||
h.connection.db.prepare("update task_runs set state = 'completed', created_at = '2000-01-01T00:00:00.000Z' where state = 'queued'").run();
|
||||
h.organization.updateTaskStatus(h.orgId, childId, TASK_STATUS.DONE);
|
||||
h.connection.transaction(() => h.execution.enqueueHeartbeatRuns());
|
||||
expect(queuedTasks()).toEqual([parentId]);
|
||||
|
||||
Reference in new issue
Block a user