Recommended pattern for job-scoped variables? #2872
-
Hi. I'd like to set a variable at the beginning of my flow and reuse it throughout the flow. What is the recommended pattern? I don't think I can use a standard or state variable because another job could change the variable during parallel executions. I thought about creating a variable at the start of the flow including the contextual JOB_ID, but this will create many variables which I don't know how to programmatically destroy. Should I just update the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You cannot modify the results object, it's a proxy object that actually call the api underneath. However you have the right intuition, set it as the result of your first step (by returning it) to achieve the desired effect |
Beta Was this translation helpful? Give feedback.
You cannot modify the results object, it's a proxy object that actually call the api underneath. However you have the right intuition, set it as the result of your first step (by returning it) to achieve the desired effect