Commit 3bfa608
fix(scheduler): dedupe ExperimentJobStateEvent writes per job
notify_job_state is called on every JobProgressEvent forwarded from the
job process, which appended a duplicate ExperimentJobStateEvent to the
experiment event log even when the scheduler_state had not changed,
producing huge logs. Track the last written (scheduler_state,
failure_reason) per (experiment, run, job) and skip the file write when
unchanged.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dd80a93 commit 3bfa608
1 file changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
175 | 184 | | |
176 | 185 | | |
177 | 186 | | |
| |||
890 | 899 | | |
891 | 900 | | |
892 | 901 | | |
893 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
894 | 915 | | |
895 | 916 | | |
896 | 917 | | |
| |||
0 commit comments