Replies: 1 comment 6 replies
-
|
To pass custom parameters from the API container to the worker container in Dify, use the In the API container: run_context = build_dify_run_context(
tenant_id=...,
app_id=...,
user_id=...,
user_from=UserFrom.ACCOUNT,
invoke_from=InvokeFrom.DEBUGGER,
extra_context={"organization": organization, "user": user_param}
)In worker container nodes: organization = self.get_run_context_value("organization")
user = self.get_run_context_value("user")Important notes:
There's also a related discussion with the same question that might be helpful. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
6 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.
-
Self Checks
Content
How to access the custom parameters from the docker-api-1 container in docker-worker-1, similar to global variables
Beta Was this translation helpful? Give feedback.
All reactions