Commit c8b60a6
[core] add entrypoint log for jobs (ray-project#58300)
this helps prevent an edge case when using file based log exporters like
vector that use fingerprinting
[ref](https://vector.dev/docs/reference/configuration/sources/file/#fingerprint)
to identify unique files.
example edge case that this fixes:
two jobs are submitted to a cluster and begin executing at the same
time, they both contain an invalid entrypoint that references a
nonexistant file
before fix:
- both jobs have the identical "Runtime env is setting up" log with
identical timestamps
- both jobs have identical entrypoint failure logs
as a result, the log files for these jobs are identical, so vector will
only export one.
after fix:
- both jobs have the identical "Runtime env is setting up" log with
identical timestamps
- each job has a **unique** entrypoint log containing its job_id
- both jobs have identical entrypoint failure logs
vector can differentiate between these two files, so both will be
exported
---------
Signed-off-by: Chris Fellowes <[email protected]>
Signed-off-by: chrisfellowes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Co-authored-by: Edward Oakes <[email protected]>1 parent 1310a3c commit c8b60a6
File tree
4 files changed
+32
-10
lines changed- python/ray/dashboard/modules/job
- tests
4 files changed
+32
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
203 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
338 | 339 | | |
339 | | - | |
| 340 | + | |
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| |||
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
350 | | - | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
| |||
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
1043 | | - | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1044 | 1047 | | |
1045 | 1048 | | |
1046 | 1049 | | |
| |||
1080 | 1083 | | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | | - | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1084 | 1089 | | |
1085 | 1090 | | |
1086 | 1091 | | |
| |||
1104 | 1109 | | |
1105 | 1110 | | |
1106 | 1111 | | |
1107 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1108 | 1115 | | |
1109 | 1116 | | |
1110 | 1117 | | |
| |||
1133 | 1140 | | |
1134 | 1141 | | |
1135 | 1142 | | |
1136 | | - | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1137 | 1147 | | |
1138 | 1148 | | |
1139 | 1149 | | |
| |||
0 commit comments