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
3a1ff463
Commit
3a1ff463
authored
3 years ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
making null execution location specifiable
parent
1abf2772
No related branches found
No related tags found
1 merge request
!501
Relocatable Null
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
schema/versions/257537f99abc_make_null_relocatable_for_testing.py
+73
-0
73 additions, 0 deletions
...ersions/257537f99abc_make_null_relocatable_for_testing.py
schema/versions/42a9e35d0809_.py
+24
-0
24 additions, 0 deletions
schema/versions/42a9e35d0809_.py
with
97 additions
and
0 deletions
schema/versions/257537f99abc_make_null_relocatable_for_testing.py
0 → 100644
+
73
−
0
View file @
3a1ff463
"""
make null relocatable for testing
Revision ID: 257537f99abc
Revises: 42a9e35d0809
Create Date: 2021-09-14 09:52:41.666489
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
"
257537f99abc
"
down_revision
=
"
42a9e35d0809
"
branch_labels
=
None
depends_on
=
None
condor_content
=
"""
executable = null.sh
arguments = {{arguments}}
output = null.out
error = null.err
log = condor.log
should_transfer_files = yes
transfer_input_files = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin/null
#run on a condor node in CV-NAASC
{{#remote-cv}}
requirements = (CVPOST == True)
+partition =
"
CVPOST
"
{{/remote-cv}}
#run on a NMT condor node. (naming consistent with vlass-seci)
{{#remote}}
requirements = (HasLustre =!= True)
{{/remote}}
queue
"""
old_content
=
"""
executable = null.sh
arguments = {{arguments}}
output = null.out
error = null.err
log = null.log
should_transfer_files = yes
transfer_input_files = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin/null
queue
"""
def
upgrade
():
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content=E
'
{
condor_content
}
'
WHERE filename=
'
null.condor
'
"""
)
def
downgrade
():
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content=E
'
{
old_content
}
'
WHERE filename=
'
null.condor
'
"""
)
This diff is collapsed.
Click to expand it.
schema/versions/42a9e35d0809_.py
0 → 100644
+
24
−
0
View file @
3a1ff463
"""
empty message
Revision ID: 42a9e35d0809
Revises: af3e4a4e7ede, 0953fe9fb794
Create Date: 2021-09-14 09:52:37.645654
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'
42a9e35d0809
'
down_revision
=
(
'
af3e4a4e7ede
'
,
'
0953fe9fb794
'
)
branch_labels
=
None
depends_on
=
None
def
upgrade
():
pass
def
downgrade
():
pass
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