Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ACME-Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pegasus-isi
ACME-Workflow
Commits
8a97c548
Commit
8a97c548
authored
10 years ago
by
Juve, Gideon
Browse files
Options
Downloads
Patches
Plain Diff
Update DAX generator for new directory structure
parent
84106ab3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daxgen.py
+7
-4
7 additions, 4 deletions
daxgen.py
with
7 additions
and
4 deletions
daxgen.py
+
7
−
4
View file @
8a97c548
...
...
@@ -6,6 +6,7 @@ import shutil
import
string
from
ConfigParser
import
ConfigParser
from
Pegasus.DAX3
import
*
from
datetime
import
datetime
DAXGEN_DIR
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
TEMPLATE_DIR
=
os
.
path
.
join
(
DAXGEN_DIR
,
"
templates
"
)
...
...
@@ -79,6 +80,7 @@ tr acme-setup {
arch
"
x86_64
"
os
"
linux
"
type
"
STAGEABLE
"
profile pegasus
"
exitcode.successmsg
"
"
CESM BUILDEXE SCRIPT HAS FINISHED SUCCESSFULLY
"
profile globus
"
count
"
"
1
"
profile globus
"
jobtype
"
"
single
"
profile hints
"
grid.jobtype
"
"
auxillary
"
...
...
@@ -142,7 +144,8 @@ tr acme-amwg {
def
generate_dax
(
self
):
"
Generate a workflow (DAX, config files, and replica catalog)
"
dax
=
ADAG
(
self
.
casename
)
ts
=
datetime
.
utcnow
().
strftime
(
'
%Y%m%dT%H%M%SZ
'
)
dax
=
ADAG
(
"
acme-%s
"
%
ts
)
if
self
.
stop_option
in
[
"
nyear
"
,
"
nyears
"
]:
amwg
=
True
...
...
@@ -163,7 +166,7 @@ tr acme-amwg {
i
=
1
for
stop_n
,
walltime
in
zip
(
self
.
stop_n
,
self
.
walltime
):
stage
=
Job
(
name
=
"
acme-run
"
)
stage
.
addArguments
(
"
-
stage %s -stop %s -n %s
"
%
(
i
,
self
.
stop_option
,
stop_n
))
stage
.
addArguments
(
"
-
case
"
,
self
.
casename
,
"
-stage
"
,
str
(
i
),
"
-stop
"
,
self
.
stop_option
,
"
-n
"
,
str
(
stop_n
))
stage
.
addProfile
(
Profile
(
namespace
=
"
globus
"
,
key
=
"
maxwalltime
"
,
value
=
walltime
))
dax
.
addJob
(
stage
)
if
i
==
1
:
...
...
@@ -178,7 +181,7 @@ tr acme-amwg {
output
=
File
(
"
%s-stage%s/
"
%
(
self
.
casename
,
i
))
archive
=
Job
(
name
=
"
acme-output
"
)
archive
.
addArguments
(
"
-
stage %s
"
%
i
)
archive
.
addArguments
(
"
-
case
"
,
self
.
casename
,
"
-stage
"
,
str
(
i
)
)
archive
.
uses
(
output
,
link
=
Link
.
OUTPUT
,
register
=
False
,
transfer
=
True
)
archive
.
addProfile
(
Profile
(
namespace
=
"
globus
"
,
key
=
"
maxwalltime
"
,
value
=
"
30
"
))
dax
.
addJob
(
archive
)
...
...
@@ -208,7 +211,7 @@ tr acme-amwg {
# Add the job
diag
=
Job
(
name
=
"
acme-amwg
"
)
diag
.
addArguments
(
script
)
diag
.
addArguments
(
"
-case
"
,
self
.
casename
,
"
-script
"
,
script
)
diag
.
uses
(
script
,
link
=
Link
.
INPUT
)
diag
.
uses
(
diagnostics
,
link
=
Link
.
OUTPUT
,
register
=
False
,
transfer
=
True
)
diag
.
addProfile
(
Profile
(
namespace
=
"
globus
"
,
key
=
"
maxwalltime
"
,
value
=
"
30
"
))
...
...
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