PrefectHQ / prefect-recipes

Snippets and templates representing common Customer Success patterns
https://PrefectHQ.github.io/prefect-recipes/
Apache License 2.0
238 stars 29 forks source link

Add `JobBlock` implementation recipe #183

Closed zzstoatzz closed 1 year ago

zzstoatzz commented 1 year ago

Description

What's cooking? If this PR references an issue, please attach to the existing issue.

Type of change

New Recipe Checklist

ahuang11 commented 1 year ago

I'm personally not a big fan of Foo/Bar examples because they don't really mean anything and they're not relatable (to me anyways). Here's a blog post I randomly found: https://www.techyourchance.com/never-use-foo-bar-baz/

I prefer if this recipe was based off a real life scenario; perhaps a stripped down version of ShellJob (just subprocess.run and subprocess.communicate without the async stuff)?

zzstoatzz commented 1 year ago

Fair point about Foo being non-realistic, I guess I just didn't want to step on the toes of any real collections / blocks that we're writing and confuse anyone

just wanted to put this out here so we could start talking about what should be here