Skip to content

chore(amber): remove unused SchedulerTimeSlotExpiredPause#4533

Merged
Yicong-Huang merged 3 commits into
apache:mainfrom
Yicong-Huang:chore/remove-scheduler-time-slot-expired-pause
Apr 27, 2026
Merged

chore(amber): remove unused SchedulerTimeSlotExpiredPause#4533
Yicong-Huang merged 3 commits into
apache:mainfrom
Yicong-Huang:chore/remove-scheduler-time-slot-expired-pause

Conversation

@Yicong-Huang
Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Remove the unused SchedulerTimeSlotExpiredPause pause type and the dead Python handler that referenced it. None of the following symbols are referenced anywhere in the codebase:

  • SchedulerTimeSlotExpiredPause (Scala) in amber/src/main/scala/.../worker/PauseType.scala
  • PauseType.SCHEDULER_TIME_SLOT_EXPIRED_PAUSE (Python) in amber/src/main/python/core/architecture/managers/pause_manager.py
  • MainLoop._scheduler_time_slot_event (Python) in amber/src/main/python/core/runnables/main_loop.py — never called

The Python enum is renumbered to keep values consecutive; the int values are not serialized externally.

Any related issues, documentation, discussions?

Closes #4532

How was this PR tested?

Pure dead-code removal — no behavior change. Verified via repo-wide grep that no references to the removed symbols remain. Existing sbt test and Python tests cover the surrounding pause/main-loop code paths.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)

Drop the SchedulerTimeSlotExpiredPause pause type and the
associated dead handler, neither of which is referenced anywhere
in the codebase.

Closes apache#4532

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@zuozhiw zuozhiw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good thx for the cleanup

@Yicong-Huang Yicong-Huang enabled auto-merge (squash) April 27, 2026 00:22
@Yicong-Huang Yicong-Huang self-assigned this Apr 27, 2026
@Yicong-Huang Yicong-Huang merged commit a099f0c into apache:main Apr 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused SCHEDULER_TIME_SLOT_EXPIRED_PAUSE pause type and dead handler

2 participants