Skip to content

Commit 12e98b8

Browse files
committed
Updates job settings
1 parent d234c48 commit 12e98b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def startup_event() -> None:
121121
# On shutdown, shutdown the scheduler service first
122122
@api.on_event("shutdown")
123123
async def shutdown_event():
124-
await Scheduler.shutdown()
124+
Scheduler.shutdown()
125125

126126

127127
# Currently, handled by the old Pybot and can't be handled by us without some legacy token usage

modules/models/scheduled_message_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ScheduledMessageInfo(AirtableRowBaseModel):
3535
example="2021-04-23T10:20:30.400+00:00",
3636
description="ISO formatted datetime in UTC to send the first message - this is used to set the schedule for this message",
3737
)
38-
frequency: FrequencyEnum = Field(
38+
frequency: str = Field(
3939
...,
4040
example="daily",
4141
description="Frequency to send the message - one of daily, weekly, monthly",

0 commit comments

Comments
 (0)