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

Create a TowerClient #4210

Open
Vince-janv opened this issue Feb 17, 2025 · 1 comment
Open

Create a TowerClient #4210

Vince-janv opened this issue Feb 17, 2025 · 1 comment

Comments

@Vince-janv
Copy link
Contributor

Vince-janv commented Feb 17, 2025

Write a client to interact with the seqera-platfrom/NFTower API

It needs:

  • Authentication
  • launch via workflow/launch or action/launch

Instantiation:

  • An API-token is needed in the config
  • The base-URL for the API
@islean
Copy link
Contributor

islean commented Feb 18, 2025

Basing this comment off of #4204 (comment).

Parts of the client

My thinking is that we need

  • A prod user which has a created token which we add to the CGConfig. This token should be sent as a header in any request.
  • A stage user which has a created token which we add to the CGConfig. This token should be sent as a header in any request.
  • An action per workflow gathering common parameters
    • Specifies github repository
    • Revision
    • PreRunScript (activating the correct conda env etc)
    • computeEnvId
    • pullLatest
    • Potentially params and config which is not case specific (might be more work than gain though)
  • Support for POST /action/launch
  • Support for GET /workflow/<workflowId>/launch to get the sessionId.
  • The base URL in the CGConfig

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

2 participants