aws-samples / sagemaker-run-notebook

Tools to run Jupyter notebooks as jobs in Amazon SageMaker - ad hoc, on a schedule, or in response to events
Apache License 2.0
142 stars 69 forks source link

Passing an Event Pattern instead of a schedule to create an execution rule #21

Closed carmelotony closed 3 years ago

carmelotony commented 3 years ago

Hi,

It's not clear how to pass an event pattern instead of a schedule on either the CLI or the python library. Can you just pass the Json string on the "--at" or "schedule=" params of the schedule function respectively?

carmelotony commented 3 years ago

There is actually an "event_pattern=" parameter that can be passed in the schedule function.