Skip to content

Produces invalid Python code: TypeError: execute_activity() takes from 1 to 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given #70

@donald-pinckney

Description

@donald-pinckney

Bad code:

await workflow.execute_activity(
                send_confirmation_email,
                order,
                tracking_number,
                start_to_close_timeout=timedelta(seconds=30),
            )

Try to repro with:

/temporal-developer make an example temporal workflow which is a multi-step order processing workflow, and which may have business logic level failures at some of the later steps. Do it in Python, in a directory at python/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions