fix(agent-jobs): stop heartbeat from resurrecting terminated jobs
This commit is contained in:
@@ -119,6 +119,7 @@ describe('recoverStaleJobs', () => {
|
||||
|
||||
expect(result).toEqual({ recovered: 1 });
|
||||
expect(state.job?.status).toBe('timed_out');
|
||||
expect(state.job?.workspaceStatus).toBe('expired');
|
||||
expect(state.job?.completedAt).toBeTypeOf('number');
|
||||
expect(state.request?.status).toBe('failed');
|
||||
expect(state.thread?.status).toBe('failed');
|
||||
|
||||
Reference in New Issue
Block a user