fix(librarian): register JanitorCleanupFavoritesTask in scribe priority#768
Merged
Conversation
JanitorCleanupFavoritesTask was wired into janitor dispatch, nightly queueing, and the admin task map, but missing from _SCRIBE_TASK_PRIORITY. When the task hit the scribe queue, tuple.index() raised ValueError, the put silently failed, and "Cleanup Orphans Favorites" stayed pending forever. Add it to the priority tuple and align Bookmarks/Settings ordering with _NIGHTLY_TASK_CLASSES so the two tuples stay in sync. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
JanitorCleanupFavoritesTaskwas missing from_SCRIBE_TASK_PRIORITY, soget_task_priority()raisedValueError: tuple.index(x): x not in tuplewhenever the task reached the scribe queue. The task was wired into janitor dispatch, nightly queueing, and the admin task map — only the priority tuple was missed.scribed.py:put -> priority.py:70.JanitorCleanupFavoritesTaskto the priority tuple next to the other orphan-cleanup tasks, and reorder Bookmarks/Settings to mirror_NIGHTLY_TASK_CLASSESso the two tuples stay in sync.Reviewer notes
get_task_priority/_SCRIBE_TASK_PRIORITY. Verified manually thatget_task_priority(JanitorCleanupFavoritesTask())returns a valid(int, float)tuple, and that everyScribeTasksubclass in_NIGHTLY_TASK_CLASSESis also present in_SCRIBE_TASK_PRIORITY.make fixis currently broken on macOS due tobin/fix-docker.shusingmapfile(Bash 4+ only; macOS ships Bash 3.2). Surfaced here as a separate workflow issue — not addressed in this PR.Test plan
🤖 Generated with Claude Code