Commit 544a6b9
docs: Warn about Task lifecycle in Evaluator.evaluate
The returned Task starts executing immediately, but asyncio only
holds a weak reference to it. If the caller drops the Task before
it completes, garbage collection can cancel it mid-execution and
the judge evaluations silently never run. Document the strong-
reference contract so callers know to retain it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 677e790 commit 544a6b9
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments