Skip to content

Commit 3533413

Browse files
committed
change: Update cron job to run hourly
1 parent ac80ceb commit 3533413

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/integ/test_clarify_model_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
SHAP_NUM_OF_SAMPLES = 5
6565
SHAP_AGG_METHOD = "mean_abs"
6666

67-
CRON = "cron(*/5 * * * ? *)"
67+
CRON = "cron(0 * * * ? *)"
6868
UPDATED_CRON = CronExpressionGenerator.daily()
6969
MAX_RUNTIME_IN_SECONDS = 30 * 60
7070
UPDATED_MAX_RUNTIME_IN_SECONDS = 25 * 60

tests/integ/test_model_monitor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
INTEG_TEST_MONITORING_OUTPUT_BUCKET = "integ-test-monitoring-output-bucket"
8383

84-
FIVE_MIN_CRON_EXPRESSION = "cron(0/5 * ? * * *)"
84+
HOURLY_CRON_EXPRESSION = "cron(0 * ? * * *)"
8585

8686

8787
@pytest.fixture(scope="module")
@@ -151,7 +151,7 @@ def default_monitoring_schedule_name(sagemaker_session, output_kms_key, volume_k
151151
output_s3_uri=output_s3_uri,
152152
statistics=statistics,
153153
constraints=constraints,
154-
schedule_cron_expression=FIVE_MIN_CRON_EXPRESSION,
154+
schedule_cron_expression=HOURLY_CRON_EXPRESSION,
155155
enable_cloudwatch_metrics=ENABLE_CLOUDWATCH_METRICS,
156156
)
157157

@@ -211,7 +211,7 @@ def byoc_monitoring_schedule_name(sagemaker_session, output_kms_key, volume_kms_
211211
output=MonitoringOutput(source="/opt/ml/processing/output", destination=output_s3_uri),
212212
statistics=statistics,
213213
constraints=constraints,
214-
schedule_cron_expression=FIVE_MIN_CRON_EXPRESSION,
214+
schedule_cron_expression=HOURLY_CRON_EXPRESSION,
215215
)
216216

217217
_wait_for_schedule_changes_to_apply(monitor=my_byoc_monitor)

tests/integ/test_model_quality_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
HEADERS_OF_FEATURES = ["F1", "F2", "F3", "F4", "F5", "F6", "F7"]
5050
ALL_HEADERS = [*HEADERS_OF_FEATURES, HEADER_OF_LABEL, HEADER_OF_PREDICTED_LABEL]
5151

52-
CRON = "cron(*/5 * * * ? *)"
52+
CRON = "cron(0 * * * ? *)"
5353
UPDATED_CRON = CronExpressionGenerator.daily()
5454
MAX_RUNTIME_IN_SECONDS = 30 * 60
5555
UPDATED_MAX_RUNTIME_IN_SECONDS = 25 * 60

0 commit comments

Comments
 (0)