Skip to content

Proposal: safe_map function for tasks #3492

Answered by jlowin
evamaxfield asked this question in Ideas
Discussion options

You must be logged in to vote

Hey @JacksonMaxfield - I understand your use case but I'm not sure if this yet rises to a level that we would want to promote as first-class in the Prefect framework. My recommendation at this time would be to take your first example code and bundle it up as a custom function safe_map which applies your logic in a reusable way.

If you look through the Prefect codebase, we very rarely apply semantic meaning (or even binary splits) to task states; we view the objective of the library as providing first-class tools for working with a multitude of states (success and failed of course, but also retries, skips, scheduled, and a variety we haven't even released yet!). We've only taken an "opinio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evamaxfield
Comment options

Answer selected by evamaxfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants