Skip to content

Commit

Permalink
Externalize the description of the schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Dec 7, 2024
1 parent 54c8890 commit 2364c1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@
day="*",
month="*",
time_zone=cdk.TimeZone.AMERICA_LOS_ANGELES,
)
),
schedule_description="This is a cron-based schedule that will run every 5 minutes",
)
data_integration_stack = DataIntegrationStack(
app, f"{stack_name_prefix}-data-integration", data_integration_props
Expand Down
4 changes: 4 additions & 0 deletions openchallenges/data_integration_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ class DataIntegrationProps:
Attributes:
schedule (ScheduleExpression): The schedule for triggering the data integration.
schedule_description (str): The description of the schedule.
"""

schedule: ScheduleExpression
"""The schedule for triggering the data integration."""

schedule_description: str
"""The description of the schedule."""
2 changes: 1 addition & 1 deletion openchallenges/data_integration_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ def __init__(
schedule=props.schedule,
target=target,
group=schedule_group,
description="This is a cron-based schedule that will run every 5 minutes",
description=props.schedule_description,
)

0 comments on commit 2364c1a

Please sign in to comment.