Clear finished jobs' steps a minute after they end
Job steps (bots_queue_updates) only feed the live working row, so the new clear-job-steps cron deletes them shortly after a job ends, however it ended, keeping their count on bots_queue.steps for the message details. Not done the moment a job ends: the live relay would miss the last ones. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -414,6 +414,12 @@ export const AppData = {
|
||||
* working-on panel shows.
|
||||
*/
|
||||
BotJobUpdatesShown: 12,
|
||||
/**
|
||||
* How long a finished job's steps stay before they're cleared
|
||||
* (`clear-job-steps` cron). Long enough for every process's live relay
|
||||
* to have pushed the last ones (`LiveRelayPollMs`).
|
||||
*/
|
||||
BotJobStepsKeepMs: 60 * 1000,
|
||||
/**
|
||||
* How often each server process reads new bot messages, job steps and
|
||||
* bot changes from the database for its own sockets (`liveRelay`).
|
||||
|
||||
Reference in New Issue
Block a user