StackStorm / StackStorm/st2

Retry logic for 'st2client' and 'st2 pack'

Open
#3,257 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Improvement from the https://github.com/StackStorm/st2-packages/issues/429

Most of the networking-related logic needs retrying mechanism. This is a rule of dumb in any package manager/client since in reality failures occur pretty frequently.

StackStorm shouldn't be an exception in following more reliable strategy.

TODO
  1. Add retry, timeout, delay-on-retry logic to st2client httpclient
  2. st2 pack retry logic for git cloning and any networking-related requests.
Resources

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 with st2client/st2client/utils/httpclient.py, then inspect contrib/packs/actions/pack_mgmt/download.py and st2common/st2common/services/packs.py. Trace the networking requests and git-cloning paths, using the linked Requests documentation for retry and timeout behavior. Done means st2client and st2 pack retry relevant failures with configurable timeout and delay-on-retry logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.