Skip to content
Snippets Groups Projects
Commit 79baa92a authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

make VLASS calibration run on VLASS nodes

parent 9face8fb
No related branches found
No related tags found
2 merge requests!1390Catch up with Main,!1346make VLASS calibration run on VLASS nodes
Pipeline #9844 passed
"""move vlass cal nodes
Revision ID: 1f32110d170d
Revises: 762c98a8adf1
Create Date: 2023-05-19 09:29:36.233260
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "1f32110d170d"
down_revision = "0f3095e84234"
branch_labels = None
depends_on = None
old_requirement = """requirements = HasLustre == True"""
new_requirement = """requirements = (VLASS == True) && (HasLustre == True)
+partition = "VLASS"
"""
def upgrade():
op.execute(
f"""
UPDATE workflow_templates
SET content = replace(convert_from(content, 'utf8'), E'{old_requirement}', E'{new_requirement}')::bytea
WHERE workflow_name = 'vlass_calibration'
"""
)
def downgrade():
op.execute(
f"""
UPDATE workflow_templates
SET content = replace(convert_from(content, 'utf8'), E'{new_requirement}', E'{old_requirement}')::bytea
WHERE workflow_name = 'vlass_calibration'
"""
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment