Commit d45f29e
fix(watson): correct flush hook signature after bad merge
The merge back from master reintroduced master's class-based wrapper
signature `(self, engine, obj)` on top of dev's instance-based patch of
`search_context_manager.add_to_context`. Assigning to the instance means
Python never binds `self`, so watson's post_save calls the wrapper with
`(engine, obj)` and it blows up with "missing required positional
argument: 'obj'".
That killed the calculate_grade and post_process_findings_batch celery
tasks whenever product grading was on, which cascaded into the perf test
UnboundLocalErrors and zeroed-out query counts.
Restore dev's `(engine, obj)` signature and drop the now-moot
singleton guard.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7f7ec7d commit d45f29e
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 353 | + | |
| 354 | + | |
364 | 355 | | |
365 | 356 | | |
366 | 357 | | |
| |||
0 commit comments