Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Closed
#69 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
backend

Research direction

No file or test is named. Start by reproducing the Python multi-step order-processing workflow described in the issue and inspect where the generated retry policy is sourced. Done means the generated example uses an available API and no longer produces the reported AttributeError.

Written by the indexing model from the issue text.

Description

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

Dominant language
No language data
Stars
230
Forks
31
Avg merge
2d 6h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temporalio/skill-temporal-developer

All issues in temporalio/skill-temporal-developer

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.