Repository navigation
Commit 677d42d
fix(model-monitor): honor base_job_name for job definition names (#6372)
ModelMonitor subclasses generated the monitoring job definition name from
the type's JOB_DEFINITION_BASE_NAME constant, ignoring a user-supplied
base_job_name -- even though the monitoring schedule name already honors it.
As a result base_job_name was silently dropped for the job definition (and
the monitoring resources derived from it).
Add a _generate_job_definition_name() helper on the ModelMonitor base
(mirroring _generate_monitoring_schedule_name) that uses base_job_name when
provided and falls back to JOB_DEFINITION_BASE_NAME otherwise, and use it in
the data-quality, model-quality, model-bias and model-explainability create
and update paths.
Note: the recurring execution processing job names are assigned by the
SageMaker service and remain non-customizable.
Relates-to #4783
Co-authored-by: Roja Reddy Sareddy <rsareddy@amazon.com>1 parent e449c7f commit 677d42d
3 files changed
Lines changed: 73 additions & 9 deletions
File tree
- sagemaker-core
- src/sagemaker/core/model_monitor
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
640 | 639 | | |
641 | 640 | | |
642 | 641 | | |
643 | | - | |
| 642 | + | |
644 | 643 | | |
645 | 644 | | |
646 | 645 | | |
| |||
783 | 782 | | |
784 | 783 | | |
785 | 784 | | |
786 | | - | |
| 785 | + | |
787 | 786 | | |
788 | 787 | | |
789 | 788 | | |
| |||
1082 | 1081 | | |
1083 | 1082 | | |
1084 | 1083 | | |
1085 | | - | |
| 1084 | + | |
1086 | 1085 | | |
1087 | 1086 | | |
1088 | 1087 | | |
| |||
1230 | 1229 | | |
1231 | 1230 | | |
1232 | 1231 | | |
1233 | | - | |
| 1232 | + | |
1234 | 1233 | | |
1235 | 1234 | | |
1236 | 1235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1216 | 1232 | | |
1217 | 1233 | | |
1218 | 1234 | | |
| |||
2074 | 2090 | | |
2075 | 2091 | | |
2076 | 2092 | | |
2077 | | - | |
| 2093 | + | |
2078 | 2094 | | |
2079 | 2095 | | |
2080 | 2096 | | |
| |||
2444 | 2460 | | |
2445 | 2461 | | |
2446 | 2462 | | |
2447 | | - | |
| 2463 | + | |
2448 | 2464 | | |
2449 | 2465 | | |
2450 | 2466 | | |
| |||
3208 | 3224 | | |
3209 | 3225 | | |
3210 | 3226 | | |
3211 | | - | |
| 3227 | + | |
3212 | 3228 | | |
3213 | 3229 | | |
3214 | 3230 | | |
| |||
3364 | 3380 | | |
3365 | 3381 | | |
3366 | 3382 | | |
3367 | | - | |
| 3383 | + | |
3368 | 3384 | | |
3369 | 3385 | | |
3370 | 3386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
383 | 432 | | |
384 | 433 | | |
385 | 434 | | |
| |||
0 commit comments