Skip to content

Commit

Permalink
fix(fleet): RUNNING to IDLE is a valid state transition
Browse files Browse the repository at this point in the history
RUNNING node should be idled when they haven't executed a script in the
last 24h
  • Loading branch information
TBonnin committed Jan 16, 2025
1 parent c4e0aa6 commit 917ff1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/fleet/lib/models/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const validNodeStateTransitions = [
{ from: 'STARTING', to: 'ERROR' },
{ from: 'RUNNING', to: 'OUTDATED' },
{ from: 'RUNNING', to: 'ERROR' },
{ from: 'RUNNING', to: 'IDLE' },
{ from: 'OUTDATED', to: 'FINISHING' },
{ from: 'OUTDATED', to: 'ERROR' },
{ from: 'FINISHING', to: 'IDLE' },
Expand Down

0 comments on commit 917ff1e

Please sign in to comment.