temporalio / temporalio/skill-temporal-developer

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`

Open
#70 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
220
Forks
30
Avg merge
22h 21m
Merged PRs (30d)
14

Description

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/

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the /temporal-developer request and inspect the generated multi-step workflow in the python/ directory, especially the workflow.execute_activity call shown in the issue. Confirm the example is valid Python and that its activity invocation matches the supported arguments, then rerun the workflow example to verify the error is gone.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.