is there a way of yielding multiple RunRequest usi...
# ask-community
i
is there a way of yielding multiple RunRequest using a custom schedule?
🤖 1
o
hi @Ismael Rodrigues! yep you're allowed to yield multiple run requests from the body of a schedule function
🌈 1
i
Copy code
yield  [
        RunRequest(
            job_name=pretty_job
            run_config=awesome_fn_that_creates_run_config(date),
            partition_key=date
        ) for date in pretty_list
]
so this should do the job, right? thanks!!
o
ah you'll want to do
yield from
instead of
yield
, but otherwise yep should work (basically the difference between yielding multiple run requests and yielding a single list of run requests)
❤️ 1