-
Notifications
You must be signed in to change notification settings - Fork 0
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
Patch: update support for fixed queue workflows #169
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dapineyro
changed the title
Feat: update support for fixed queue workflows
Fix: update support for fixed queue workflows
Oct 22, 2024
dapineyro
changed the title
Fix: update support for fixed queue workflows
Patch: update support for fixed queue workflows
Oct 22, 2024
l-mansouri
previously approved these changes
Oct 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I've left just 2 comments!
l-mansouri
previously approved these changes
Oct 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @dapineyro
l-mansouri
approved these changes
Oct 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR improves AWS batch queue support for Platform Workflows such as "system tools" or "data factory".
Previous to this patch, the queue selection logic for Platform Workflows was the same as for regular workflows:
--job-queue
name in the workspace available queues.--job-queue
was not provided: select the default queue.This logic presents an issue for Platform Workflows. These special type of workflows always run on fixed queues provided by the system and not transparent to the user. Therefore, they ignore any job queue value used. In addition to that, they can also run even if there is no normal queue available in the workspace, as the system queues are always available regardless the workspace. Therefore, the previous logic had two main issues:
The present PR removes the queue selection for Platform Workflows:
Jira
https://lifebit.atlassian.net/browse/LIF-1331
Changes
is_module
method toCloudos
class, so we can detect when a workflow is a Module (a.k.a Platform Workflow).Cloudos.process_workflow_list
method, we now also extract theisModule
column. That column effectively marks all the Platform Workflows: "system-tools", "drug-discovery", "data-factory", "data-factory-omics-etl", "data-factory-omics-insights", "data-factory-data-connection-etl" and "intermediate". "system-tools" are using the fixed "system_tools" queue, "drug-discovery" is using the fixed "drug_discovery" queue and all the others are using "data_factory" fixed queue.isModule=True
), then queue selection won't run and no queue value will be passed to the job call.Tests
Using docker image:
Global variables:
Running a normal workflow specifying a queue
Running a normal workflow without specifying a queue (default one is selected)
Running a normal workflow, specifying a non-existent queue (default one is selected)
Running a System Tool, specifying a normal queue (message displayed, queue ignored and system_tools queue used)
Running a System Tool without specifying a queue (system_tools queue used)
Running a data factory workflow, specifying a normal queue (message displayed, queue ignored and data_factory queue used)
Running a data factory workflow without specifying a queue (data_factory queue used)