Skip to content

Add timeout check for smartstacks#463

Open
timbeccue wants to merge 2 commits into
feature/separate-site-depsfrom
feature/stacking-timeout
Open

Add timeout check for smartstacks#463
timbeccue wants to merge 2 commits into
feature/separate-site-depsfrom
feature/stacking-timeout

Conversation

@timbeccue
Copy link
Copy Markdown
Contributor

@timbeccue timbeccue commented May 16, 2026

Summary

Adds fixed timeout handling for smart-stack subframes.

The basic behavior is that an in-progress smart stack enters a timeout state if more than 15 minutes elapses between reduced subframes. This will trigger the final stack and cleanup routine for the smartstack (not yet implemented). The purpose is to prevent a hanging stack from indefinitely blocking the stack worker from picking up subsequent stack jobs.

Details

  • Adds fixed latest-reduced-row timeout detection for active smart stacks
  • Marks incomplete stale stacks as timeout
  • Keeps complete stacks marked as complete before considering timeout
  • Makes get_subframes() return rows ordered by stack_num
  • Keeps timeout bookkeeping based only on reduced subframe rows with required filepaths
  • Updates smart-stacking tests and architecture docs for the fixed timeout behavior

@timbeccue timbeccue force-pushed the feature/stacking-timeout branch from ebbdffb to 79b9afd Compare May 16, 2026 23:47
@timbeccue timbeccue force-pushed the feature/separate-site-deps branch from adf8300 to 5f760f6 Compare May 16, 2026 23:47
@timbeccue timbeccue requested a review from cmccully May 18, 2026 17:57
@timbeccue timbeccue changed the title Add adaptive smart-stack timeouts Add timeout check for smartstacks May 20, 2026
@timbeccue timbeccue force-pushed the feature/stacking-timeout branch from 79b9afd to 396f4f8 Compare May 20, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant