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

Filter subworkflows from job list on uuid #201

Open
innovate-invent opened this issue Dec 16, 2020 · 1 comment
Open

Filter subworkflows from job list on uuid #201

innovate-invent opened this issue Dec 16, 2020 · 1 comment

Comments

@innovate-invent
Copy link
Collaborator

Currently subworkflow invocatons inherit their tags from the parent causing them to be listed in the jobs.
A filter on workflow_id was added but this causes all jobs to dissapear when the workflow id changes.
Filtering on workflow uuid might fix this or another way to distinguish between subworkflow invocations and parents.

@innovate-invent
Copy link
Collaborator Author

An attempt at an alternative approach was implemented, but still not ideal:

// Try to recover workflow id from history tags for jobs of an older workflow
// Query must be done on workflow id as subworkflows will pollute the fetched invocations.
// Queries for all invocations associated with a history is also very very slow.
...[...new Set(histories.map(h=>h.tags.find(t=>t !== application_tag && t !== workflow.id && t.length === 16)).filter(t=>t))].map(workflow_id=>{
const w = new galaxy.workflows.StoredWorkflow();
w.id = workflow_id;
const hist = histories.filter(h=>h.tags.includes(workflow_id));
return w.fetch_invocations(hist);

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