8000 fix schedule cron conversion in events (#8692) · codeperl/localstack@7f290f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f290f7

Browse files
authored
fix schedule cron conversion in events (localstack#8692)
1 parent 48f27fa commit 7f290f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localstack/services/events/provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ def convert_schedule_to_cron(schedule):
150150
if "minute" in unit:
151151
return "*/%s * * * *" % value
152152
if "hour" in unit:
153-
return "* */%s * * *" % value
153+
return "0 */%s * * *" % value
154154
if "day" in unit:
155-
return "* * */%s * *" % value
155+
return "0 0 */%s * *" % value
156156
raise Exception("Unable to parse events schedule expression: %s" % schedule)
157157
return schedule
158158

0 commit comments

Comments
 (0)
0