Skip to content

Conversation

@bryanpaget
Copy link

Description:

  • Added a new controller to manage notebook culling based on idle state.
  • Ensures that notebooks exceeding the idle threshold are deleted while active ones remain.
  • Integrated logic for setting and checking stop annotations.
  • Implemented unit tests to validate culling behavior, stop annotation logic, and kernel activity checks.

Testing:

  • Ran unit tests to verify proper handling of idle and active notebooks.
  • Confirmed that stop annotations are correctly applied and respected.

Notes:

  • Reviewers, please check if the logic aligns with our expected culling behavior.
  • Open to feedback on test coverage or additional edge cases to consider.

- Improved error handling
- Optimized API calls (caching & retry logic)
- Single r.Update() per reconcile loop
- Centralized annotation management
- Configurable logging levels
- It properly fetches and processes notebook pods.
- It correctly identifies idle notebooks.
- It accurately logs and handles errors.
- It enforces the culling policy as expected.
@bryanpaget bryanpaget changed the base branch from master to stc-master April 1, 2025 13:48
@bryanpaget bryanpaget changed the title Implemented New Controller for Notebook Culling & Added Tests Implement New Controller for Notebook Culling & Add Tests Apr 1, 2025
@bryanpaget bryanpaget marked this pull request as draft April 1, 2025 14:01
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.

2 participants