Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
6ac48cda
Commit
6ac48cda
authored
2 years ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
ensure VLASS workflows only submit to the VLASS nodes
parent
e7d508d5
No related branches found
No related tags found
1 merge request
!1093
ensure VLASS workflows only run on VLASS nodes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/workspaces/alembic/versions/dc83011fcd2f_correct_vlass_wfs_to_use_vlass_nodes.py
+48
-0
48 additions, 0 deletions
...ions/dc83011fcd2f_correct_vlass_wfs_to_use_vlass_nodes.py
with
48 additions
and
0 deletions
shared/workspaces/alembic/versions/dc83011fcd2f_correct_vlass_wfs_to_use_vlass_nodes.py
0 → 100644
+
48
−
0
View file @
6ac48cda
"""
correct vlass wfs to use vlass nodes
Revision ID: dc83011fcd2f
Revises: 4c3bfbdd2984
Create Date: 2022-10-06 09:58:37.473495
"""
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
"
dc83011fcd2f
"
down_revision
=
"
4c3bfbdd2984
"
branch_labels
=
None
depends_on
=
None
affected_workflows
=
(
"
pims_split
"
,
"
vlass_calibration
"
,
"
vlass_coarse
"
,
"
vlass_quicklook
"
,
"
vlass_seci
"
,
"
vlass_image_caching
"
,
)
def
upgrade
():
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content= regexp_replace(convert_from(content,
'
utf-8
'
),
E
'
requirements = HasLustre == True
'
,
E
'
requirements = (VLASS == True) && (HasLustre == True)
\\
n+partition =
"
VLASS
"'
)::bytea
WHERE workflow_name in
{
str
(
affected_workflows
)
}
AND filename like (
'
%.condor
'
)
"""
)
def
downgrade
():
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content= regexp_replace(convert_from(content,
'
utf-8
'
),
E
'
requirements = (VLASS == True) && (HasLustre == True)
\\
n+partition =
"
VLASS
"'
,
E
'
requirements = HasLustre == True
'
)::bytea
WHERE workflow_name in (
{
affected_workflows
}
) AND filename like (
'
%.condor
'
)
"""
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment