Skip to content

Naming a workflow task "get_task" causes "'TaskSpec' object is not callable" error #238

Open
@szbergeron

Description

@szbergeron

If any task in the task list is named "get_task", "has_task", or various other variations visible in

def get_task(self, task_id):
, the workflow will fail at runtime with an opaque error as seen above.

Possible resolution: use internal or hidden naming for properties of WorkflowGraph objects, or store tasks within a dictionary property of WorkflowGraph objects so that name collisions with workflow tasks can not occur or are unreasonable to accidentally discover

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions