Skip to content

Produces invalid Python code: module 'temporalio.workflow' has no attribute 'RetryPolicy' #69

@donald-pinckney

Description

@donald-pinckney

Produced this code:

await workflow.execute_activity(
                charge_payment,
                order,
                start_to_close_timeout=timedelta(seconds=30),
                retry_policy=workflow.RetryPolicy(
                    maximum_attempts=1,  # Don't retry payment failures
                ),
            )

Try to repro with:

make an example 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.

Or with:

make an example 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 each of the 4 languages, in a directory for each

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions