Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get AuthorizationException when trying to update variables of a started workflow #248

Open
jruizaranguren opened this issue Feb 5, 2024 · 1 comment

Comments

@jruizaranguren
Copy link

I'm trying to set some workflow variables just after starting a workflow with this code:

clients = OrkesClients(configuration=config)
executor = WorkflowExecutor(config)
runner = clients.get_workflow_client()

request = StartWorkflowRequest(
            name="flow", correlation_id="corr_id", version=1)
flow_id = runner.start_workflow(request)
runner.update_variables(flow_id, variables={"myglobal": "global"})

But I'm getting a 404 error, which is returned as result of an internal ApiException raised from conductor/client/http/rest.py. It seems it is unable to reach /workflows/{workflow_id}/variables:

image

image

Could this be something related to the workflow still starting execution?

@jruizaranguren
Copy link
Author

The same goes when trying to get a workflow status via WorkflowExecutor or OrkesWorkflowClient. It results in a /api/workflow/1f3e63cfef74495e888993df6ac01b71/status not found exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant