Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stepfunctions: Python module has no attribute JitterType #27589

Closed
dan55 opened this issue Oct 17, 2023 · 2 comments
Closed

stepfunctions: Python module has no attribute JitterType #27589

dan55 opened this issue Oct 17, 2023 · 2 comments
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions guidance Question that needs advice or information.

Comments

@dan55
Copy link

dan55 commented Oct 17, 2023

Describe the bug

When attempting to add retries with jitter, per the documentation, there is the following error:

AttributeError: module 'aws_cdk.aws_stepfunctions' has no attribute 'JitterType'

Expected Behavior

Retries to be added to the task.

Current Behavior

The following error:

AttributeError: module 'aws_cdk.aws_stepfunctions' has no attribute 'JitterType'

Reproduction Steps

The following code from the docs.

parallel = sfn.Parallel(self, "Do the work in parallel")
parallel.add_retry(
    max_attempts=1,
    max_delay=Duration.seconds(5),
    jitter_strategy=sfn.JitterType.FULL
)

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.101.1

Framework Version

No response

Node.js Version

18.0.0

OS

macOS 13.6

Language

Python

Language Version

No response

Other information

No response

@dan55 dan55 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 17, 2023
@github-actions github-actions bot added the @aws-cdk/aws-stepfunctions Related to AWS StepFunctions label Oct 17, 2023
@khushail khushail self-assigned this Oct 17, 2023
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Oct 17, 2023
@dan55
Copy link
Author

dan55 commented Oct 18, 2023

My apologies - my libraries must have been out of date. A fresh install of the virtual environment fixed it.

@dan55 dan55 closed this as completed Oct 18, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@khushail khushail added guidance Question that needs advice or information. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. bug This issue is a bug. labels Oct 18, 2023
@khushail khushail removed their assignment Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

2 participants