Commit ae00e84
committed
Simplify JobAlreadyExists and fix stale job ID under auth
JobAlreadyExists no longer carries a Job object — the client-side
job_id could differ from the server's canonical ID when auth rewrites
the user segment, making the Job handle point at a nonexistent job.
Instead, Fray now passes existing_job_policy=KEEP when adopt_existing
is True, so the server returns the canonical ID via LaunchJobResponse
on the success path. No error-path workaround needed.1 parent e358984 commit ae00e84
3 files changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
511 | 512 | | |
512 | 513 | | |
513 | 514 | | |
| |||
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
| 523 | + | |
522 | 524 | | |
523 | 525 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 526 | + | |
528 | 527 | | |
529 | 528 | | |
530 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
| |||
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
726 | | - | |
| 725 | + | |
727 | 726 | | |
728 | 727 | | |
729 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
0 commit comments