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

Support shared pipelines #279

Merged
merged 6 commits into from
Dec 5, 2022
Merged

Support shared pipelines #279

merged 6 commits into from
Dec 5, 2022

Conversation

jordeu
Copy link
Member

@jordeu jordeu commented Nov 25, 2022

Description

Adds support to list and launch shared pipelines.

To list all pipelines

$ tw pipelines list -w myorg/myworkspace --visibility all

  Pipelines at [myorg / myworkspace] workspace:

     ID              | Name         | Repository                           | Visibility 
    -----------------+--------------+--------------------------------------+------------
     151019773731768 | shared_hello | https://github.com/nextflow-io/hello | SHARED     
     46451911407565  | sarek        | https://github.com/nf-core/sarek     | PRIVATE    

To view

$ tw pipelines view -n shared_hello -w myorg/myworkspace 

  Pipeline at [myorg / myworkspace] workspace:

    --------------+--------------------------------------
     ID           | 151019773731768                      
     Name         | shared_hello                         
     Description  | Shared hello world without CE        
     Repository   | https://github.com/nextflow-io/hello 
     Compute env. | (not defined)                        

  Configuration:

     {
       "id" : "26CgNMOZwFjxEKZ4vb2b4y",
       "pipeline" : "https://github.com/nextflow-io/hello",
       "resume" : false,
       "pullLatest" : false,
       "stubRun" : false,
       "dateCreated" : "2022-11-25T08:03:24Z"
     }

To launch them there is no new option, but now is just working when using the name:

$ tw launch -w myorg/myworkspace shared_hello

  Workflow 5W1qYuVRvzmfU7 submitted at [myorg / myworkspace] workspace.

    https://tower.nf/orgs/myorg/workspaces/myworkspace/watch/5W1qYuVRvzmfU7

Fixes #278

Guidelines for testing

  • Install development version from actions artifacts.
  • Create a shared workspace
  • Create one shared pipeline without CE
  • Create one shared pipeline with CE
  • Try to list them from a private workspace
  • Try to launch both from a private workspace

Copy link
Member

@mbosio85 mbosio85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried it, and it works as expected :)

@jordeu jordeu merged commit 503eaad into master Dec 5, 2022
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

Successfully merging this pull request may close these issues.

List & launch a shared pipeline from a private workspace
2 participants