Skip to content

Commit

Permalink
Merge pull request JeffersonLab#179 from JeffersonLab/aaust_swif2
Browse files Browse the repository at this point in the history
transition launch script to swif2
  • Loading branch information
aaust authored Jan 21, 2022
2 parents aa69788 + 83f8097 commit 4d34ca4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions launch_scripts/launch/launch.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python

# Alex Austregesilo
# Paul Mattione
# Built off of hdswif by Kei Moriya
#
# SWIF DOCUMENTATION:
# https://scicomp.jlab.org/docs/swif
# https://scicomp.jlab.org/docs/swif-cli
# SWIF2 DOCUMENTATION:
# https://scicomp.jlab.org/docs/swif2

from optparse import OptionParser
import os.path
Expand Down Expand Up @@ -220,9 +220,9 @@ def add_job(WORKFLOW, FILEPATH, config_dict):

# CREATE ADD-JOB COMMAND
# job
add_command = "swif add-job -workflow " + WORKFLOW + " -name " + JOBNAME
add_command = "swif2 add-job -workflow " + WORKFLOW + " -name " + JOBNAME
# accounting
add_command += " -project " + config_dict["PROJECT"] + " -track " + config_dict["TRACK"] + " -os " + config_dict["OS"]
add_command += " -account " + config_dict["PROJECT"] + " -partition " + config_dict["TRACK"] + " -os " + config_dict["OS"]
# resources
add_command += " -cores " + config_dict["NCORES"] + " -disk " + config_dict["DISK"] + " -ram " + config_dict["RAM"] + " -time " + config_dict["TIMELIMIT"]
# inputs
Expand Down

0 comments on commit 4d34ca4

Please sign in to comment.