Repository navigation
Create Smart Job Schduler - #28
Merged
Merged
Conversation
…art-job-schduler--f0e990ea
…art-job-schduler--83ac9e03
…art-job-schduler--63280fd7
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.
Handover: smart job scheduler, phase 1 (G-30)
What you asked for
You asked us to build the job scheduler planned in G-29. We built phase 1 of that plan:
Each run goes straight to one staff member. Where the plan left a question open, we used its recommended answer (section 14).
What we built
All of it is on the branch
canopy/create-smart-job-schduler: 47 commits and 92 files. No commit has a Claude co-author line.How it works:
Safety rules:
Schedules:
Screens:
Where the code is:
docs/design/job-scheduler*.mdhub/internal/store/migrations/00030_jobs.sql,00031_jobs_notify_kind.sql,hub/internal/store/queries/jobs.sqlhub/internal/jobs/schedule/hub/internal/jobs/engine.go,control.go,prompt.gohub/internal/jobs/finish.go,memory.go,notify.go,hub/internal/orch/goals.gohub/internal/orch/tools.go,client/internal/tools/tools.gohub/internal/api/jobs.go,hub/internal/authz/jobs.go,shared/openapi.yamlfrontend/src/app/(app)/w/[id]/jobs/How to check it
make infra, thenmake test. The new tests need the database; without it they quietly skip, so make suremake infrais up.TestJobsPhase1ExitCheck. It runs both job types three times on a fake clock and checks that run 3 of the continuous job knows what runs 1 and 2 did.make gen, thenmake hubandmake web, and open http://localhost:8000.git diff main...canopy/create-smart-job-schduler.What isn't done, and the risks
Not built yet (planned for phase 2, or left out on purpose):
Small rough edges:
/w/:id/jobs/job?id=…instead of/w/:id/jobs/<id>, because of how the web app is built.Risks:
frontend/src/lib/core-types.tswas added by hand, because the type generator needed the network.make genshould produce the same line. If it doesn't, the board's Job tag will stop showing.What you need to decide