Commit 510ccc8
fix: set TF_CONNECTION_INFO_PATH to file path instead of directory
TF_CONNECTION_INFO_PATH should point to a specific file path where
connection info is recorded line by line, not to a directory.
Changes:
- Agent workers: Set to {connectionsDir}/{workerID}.txt
- Studios: Set to {connectionsDir}/{studioName}.txt
- Updated comments to reflect correct usage
- Each worker/studio gets its own connection info file
Before: TF_CONNECTION_INFO_PATH=/var/run/connections (directory)
After: TF_CONNECTION_INFO_PATH=/var/run/connections/worker-123.txt (file)
The tensor-fusion-worker process will now write connection info
directly to the specified file, with one connection per line in
the format: clientIP,clientPort,clientPID
Files modified:
- internal/agent/agent.go: Worker-specific file paths
- internal/studio/env.go: Studio-specific file paths
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent c6dace5 commit 510ccc8
2 files changed
Lines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
235 | | - | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
450 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
451 | 454 | | |
452 | 455 | | |
453 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | | - | |
212 | | - | |
| 213 | + | |
| 214 | + | |
213 | 215 | | |
214 | | - | |
215 | | - | |
| 216 | + | |
| 217 | + | |
216 | 218 | | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| |||
0 commit comments