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

Retry mechanism for API limit failures #427

Open
drpatelh opened this issue Jun 28, 2024 · 0 comments
Open

Retry mechanism for API limit failures #427

drpatelh opened this issue Jun 28, 2024 · 0 comments

Comments

@drpatelh
Copy link
Member

drpatelh commented Jun 28, 2024

Getting an error when running the Platform CLI via one of our NF pipelines (nf-aggregate). It would be great if there was a way to catch the API limit error and retry automatically.

Error executing process > 'NF_AGGREGATE:SEQERA_RUNS_DUMP (5O6m7WW5ZSeH9X)'

Caused by:
  Essential container in task exited

Command executed:

  tw \
       \
      --url=https://api.tower.nf/ \
      --access-token=$TOWER_ACCESS_TOKEN \
      runs \
      dump \
      -id=5O6m7WW5ZSeH9X \
      --workspace=scidev/testing \
      --output="5O6m7WW5ZSeH9X.tar.gz" \
      --add-task-logs --add-fusion-logs
  
  mkdir -p 5O6m7WW5ZSeH9X
  tar \
      -xvf \
      5O6m7WW5ZSeH9X.tar.gz \
      -C 5O6m7WW5ZSeH9X
  
  cat <<-END_VERSIONS > versions.yml
  "NF_AGGREGATE:SEQERA_RUNS_DUMP":
      seqera-cli: $(echo $(tw --version 2>&1) | sed 's/^.*Tower CLI version //; s/ *$//')
  END_VERSIONS

Command exit status:
  1

Command output:
  - Tower info
  - Workflow details

Command error:
   ERROR: Maximum request rate exceeded. Wait 0secs before issuing a new request
  - Tower info
  - Workflow details
  8:49AM INF shutdown filesystem start
  8:49AM INF shutdown filesystem done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant