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
92877def
Commit
92877def
authored
3 years ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
first fringes on ingestion workflow
parent
9406ffa4
No related branches found
No related tags found
1 merge request
!327
Calibration ingestion templates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
schema/versions/e99b65ee2b4e_add_calibration_ingestion_workflow.py
+68
-0
68 additions, 0 deletions
...rsions/e99b65ee2b4e_add_calibration_ingestion_workflow.py
with
68 additions
and
0 deletions
schema/versions/e99b65ee2b4e_add_calibration_ingestion_workflow.py
0 → 100644
+
68
−
0
View file @
92877def
"""
add calibration ingestion workflow
Revision ID: e99b65ee2b4e
Revises: 2ac701610fc7
Create Date: 2021-07-06 11:44:30.072590
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
"
e99b65ee2b4e
"
down_revision
=
"
2ac701610fc7
"
branch_labels
=
None
depends_on
=
None
condor_content
=
"""
executable = ingest_cal.sh
arguments = {{request_id}} metadata.json
output = ingest.out
error = ingest.err
log = condor.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
should_transfer_files = yes
transfer_input_files = $(SBIN_PATH)/conveyor, $(SBIN_PATH)/ingest_envoy ./metadata.json
getenv = True
environment =
"
CAPO_PATH=/home/casa/capo
"
queue
"""
script_content
=
"""
#!/bin/sh
set -o errexit
chmod 770 .
./conveyor --retrieve $2
./ingest_envoy
"""
def
upgrade
():
op
.
execute
(
"""
INSERT INTO workflows (workflow_name) VALUES (
'
ingest_cal
'
)
"""
)
op
.
execute
(
f
"""
INSERT INTO workflow_templates (filename, content, workflow_name)
VALUES (
'
ingest_cal.condor
'
, E
'
{
condor_content
}
'
,
'
ingest_cal
'
)
"""
)
op
.
execute
(
f
"""
INSERT INTO workflow_templates (filename, content, workflow_name)
VALUES (
'
ingest_cal.sh
'
, E
'
{
script_content
}
'
,
'
ingest_cal
'
)
"""
)
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