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

EVA-3533 - Initial version of an orchestrator for submission processing #211

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

tcezard
Copy link
Member

@tcezard tcezard commented Jun 24, 2024

No description provided.

@nitin-ebi nitin-ebi self-requested a review June 25, 2024 08:30
@tcezard tcezard requested a review from apriltuesday July 1, 2024 22:14

def process_submissions():

scanner = SubmissionScanner()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be NewSubmissionScanner?

from retry import retry


def _url_build(*args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a docstring stating that args will be used as path params and kwargs as query params

auth = (cfg.query('submissions', 'webservice', 'admin_username'), cfg.query('submissions', 'webservice', 'admin_password'))
response = requests.put(url, auth=auth)
response.raise_for_status()
return response.json()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for the initial version but I would reiterate what I wrote in the second half of this comment about a client class for the submission-ws. This way all our Python code can use the web service uniformly, just configured using admin credentials when necessary.

eva_sub_cli_processing/process_jobs.py Outdated Show resolved Hide resolved
@tcezard tcezard merged commit 4d03fd9 into EBIvariation:master Jul 2, 2024
1 of 4 checks passed
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.

3 participants