Skip to content

Commit 2620287

Browse files
authored
Externalize the description of the schedule (#75)
* define lambda role and function * update path to Dockerfile * Externalize the description of the schedule
1 parent 25c5008 commit 2620287

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@
338338
day="*",
339339
month="*",
340340
time_zone=cdk.TimeZone.AMERICA_LOS_ANGELES,
341-
)
341+
),
342+
schedule_description="This is a cron-based schedule that will run every 5 minutes",
342343
)
343344
data_integration_stack = DataIntegrationStack(
344345
app, f"{stack_name_prefix}-data-integration", data_integration_props

openchallenges/data_integration_props.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ class DataIntegrationProps:
99
1010
Attributes:
1111
schedule (ScheduleExpression): The schedule for triggering the data integration.
12+
schedule_description (str): The description of the schedule.
1213
"""
1314

1415
schedule: ScheduleExpression
1516
"""The schedule for triggering the data integration."""
17+
18+
schedule_description: str
19+
"""The description of the schedule."""

openchallenges/data_integration_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ def __init__(
6262
schedule=props.schedule,
6363
target=target,
6464
group=schedule_group,
65-
description="This is a cron-based schedule that will run every 5 minutes",
65+
description=props.schedule_description,
6666
)

0 commit comments

Comments
 (0)