Add a way to score every unscored lead without polling
A run caps its scoring at forty leads, so a first poll of several boards left a backlog that could only be cleared by pressing "Check now" repeatedly, re-fetching every source each time. scoreJobLeads (JobLeadService.ScoreAll, "Score unscored" on /cv/leads) re-applies the keyword filter and then scores every matched, unscored lead, with no cap on the count and a one-hour limit on the time. A lead Claude fails on is tried once per press rather than three times, so a passing failure does not write it off. It shares the run lock and the polled status with runJobLeadSync, and the page now reloads the leads while either job is in flight. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -130,4 +130,9 @@ extend type Mutation {
|
||||
# if it started, false if one was already running. Poll jobLeadSyncStatus
|
||||
# to see it finish.
|
||||
runJobLeadSync: Boolean! @admin
|
||||
|
||||
# Scores every matched lead that has no score yet, without polling any
|
||||
# source. Background and polled like runJobLeadSync, and refused (false)
|
||||
# while either is running.
|
||||
scoreJobLeads: Boolean! @admin
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user