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
Merge requests
!1093
ensure VLASS workflows only run on VLASS nodes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ensure VLASS workflows only run on VLASS nodes
carta3
into
main
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Charlotte Hausman
requested to merge
carta3
into
main
2 years ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
09d86b5c
2 commits,
2 years ago
1 file
+
48
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
shared/workspaces/alembic/versions/dc83011fcd2f_correct_vlass_wfs_to_use_vlass_nodes.py
0 → 100644
+
48
−
0
Options
"""
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
{
str
(
affected_workflows
)
}
AND filename like (
'
%.condor
'
)
"""
)
Loading