Eager commit cache transaction #18170
Unanswered
rama-reddy
asked this question in
Q&A
Replies: 1 comment
-
Hey @rama-reddy thanks for the question - the only other caveat is that eager commit mode increases the chances of cache hits within your workflow. Here's what I mean: with transaction(commit_mode=CommitMode.LAZY):
sub_task(2)
sub_task(2) In this example, with transaction(commit_mode=CommitMode.EAGER):
sub_task(2)
sub_task(2) In this example, So as long as you're aware of that possibility (and it depends on your caching configuration too!), that's the only other change in behavior that I can think of. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm working on a use case where I want to eagerly cache nested tasks in Prefect. I've found that setting the transaction commit mode to
CommitMode.EAGER
helps achieve this, and also noticed that when I set aparent_task
to eager, all nested child tasks inherit this behavior.I'm aware that this will cause issues if any of the nested tasks return non-serializable values or futures, which will fail during caching.
I'm using DaskTaskRunner for distributed execution, and I'm wondering:
Are there any other side effects or caveats I should be aware of when using eager commit mode in this setup?
Appreciate any insights. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions