Skip to content

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

Description

@jruizaranguren

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions