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

Add method to update pipeline image cache #63

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

nikhil
Copy link
Member

@nikhil nikhil commented Jan 19, 2023

No description provided.

Copy link
Collaborator

@buehlere buehlere left a comment

Choose a reason for hiding this comment

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

I left a few comments, but in general I think this looks good! Let me know your thoughts.

def _get_cwl_apps():
url = urljoin(BEAGLE_ENDPOINT, API['pipelines'])
params = dict()
params['page_size'] = 1000000
Copy link
Collaborator

@buehlere buehlere Jan 30, 2023

Choose a reason for hiding this comment

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

I've seen some slow downs / bad responses when setting this parameter too high for the files system and runs endpoints. I don't think that should be an issue here since the pipelines list is relatively short. Nonetheless would we maybe want to make this an adjustable parameter somewhere? Magic numbers like these can sometimes be a bit tricky to track down when there's an issue.

pipeline_folder = find_pipeline_folder.match(git_repo).group(1)
cwl_path = os.path.join(tmpDir, pipeline_folder, cwl)
if os.path.exists(cwl_path):
cache_command = "module load singularity/3.7.1; docker_extract.py -s {} {}".format(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would we also maybe want to make the singularity version a parameter?

@@ -75,6 +79,7 @@ Usage:
beaglecli files patch <file_id> [--file-path=<file_path>] [--file-type=<file_type>] [--file-group=<file_group_id>] [--metadata=<metadata>]... [--size=<size>]
beaglecli files list [--page-size=<page_size>] [--path=<path>]... [--metadata=<metadata>]... [--file-group=<file_group>]... [--file-name=<file_name>]... [--filename-regex=<filename_regex>] [--file-type=<file_type>]... [--all]... [--packaged]... [--force]...
beaglecli files delete --file-id=<file_id>...
beaglecli pipeline update-cache <cache_path>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wouldn't mind trying the feature out on an example though. Is there a good cache path I could test it out on?

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.

2 participants