Commit 91ac90e
committed
refactor: migrate from Depoy.dump to JobSpec.model_dump
Now we have a Pydantic model that represents the full data requirement
of the scheduler, we can use the builtin `JobSpec.model_dump()` instead of
the custom `Deploy.dump()`. At the moment this model has to contain a
couple of callback functions which cannot be serialised, so these
attributes are excluded.
This commit does change the format of the dumped "deployment" objects
file. So if this is being used to check for breaking changes, then
hashes need to be compared against one generated from this commit from
now on.
Signed-off-by: James McCorrie <[email protected]>1 parent 80545d3 commit 91ac90e
2 files changed
+12
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
423 | 425 | | |
424 | 426 | | |
425 | 427 | | |
426 | | - | |
427 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
428 | 437 | | |
429 | 438 | | |
430 | 439 | | |
431 | 440 | | |
432 | 441 | | |
433 | 442 | | |
434 | | - | |
| 443 | + | |
435 | 444 | | |
436 | 445 | | |
437 | 446 | | |
| |||
| 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 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 353 | | |
373 | 354 | | |
374 | 355 | | |
| |||
0 commit comments