Add rescoring and a posting-date order to the leads inbox
rescoreJobLeads (RescoreAll, "Rescore all" on /cv/leads) scores every matched inbox lead again, for after the profile or the model has changed. Scores are not wiped first: a lead keeps its old score until the new one is saved, and the new scored_at column marks which leads the job has reached, so a job that dies partway leaves no gaps. Leads that had used up their attempts get them back. The inbox can also be ordered by when a posting went up, falling back to when it was found where the source gave no date. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -67,6 +67,7 @@ type JobLead {
|
||||
state: String!
|
||||
score: Int
|
||||
scoreReasons: String
|
||||
scoredAt: Time
|
||||
jobAppId: ID
|
||||
}
|
||||
|
||||
@@ -135,4 +136,10 @@ extend type Mutation {
|
||||
# source. Background and polled like runJobLeadSync, and refused (false)
|
||||
# while either is running.
|
||||
scoreJobLeads: Boolean! @admin
|
||||
|
||||
# Scores every matched inbox lead again, scored or not, for after the
|
||||
# profile or the model has changed. A lead keeps its old score until its
|
||||
# new one arrives. Background and polled like the two above, and refused
|
||||
# (false) while any of the three is running.
|
||||
rescoreJobLeads: Boolean! @admin
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user