Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tutorial_parallelism
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ravi Tripathi
Tutorial_parallelism
Commits
7eb09d53
Commit
7eb09d53
authored
6 years ago
by
Ravi Tripathi
Browse files
Options
Downloads
Patches
Plain Diff
Adding function job_dir_eo to add job output and error directories
parent
6dd75842
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bash_array_jobs/prep_env
+10
-0
10 additions, 0 deletions
bash_array_jobs/prep_env
with
10 additions
and
0 deletions
bash_array_jobs/prep_env
+
10
−
0
View file @
7eb09d53
...
...
@@ -11,6 +11,15 @@ def create_testdir():
os
.
makedirs
(
final_directory
)
return
final_directory
def
create_jobs_eo
():
current_directory
=
os
.
getcwd
()
jobs_err_dir
=
os
.
path
.
join
(
current_directory
,
r
'
job_err
'
)
jobs_out_dir
=
os
.
path
.
join
(
current_directory
,
r
'
job_out
'
)
if
not
os
.
path
.
exists
(
jobs_err_dir
):
os
.
makedirs
(
jobs_err_dir
)
if
not
os
.
path
.
exists
(
jobs_out_dir
):
os
.
makedirs
(
jobs_out_dir
)
def
create_testfiles_seq
(
dir
):
for
x
in
range
(
1
,
6
):
filename
=
'
test
'
+
str
(
x
)
...
...
@@ -38,6 +47,7 @@ if __name__=="__main__":
parser
.
add_argument
(
'
type
'
,
choices
=
[
'
seq
'
,
'
rand
'
,
'
diff
'
],
help
=
'
Type of test directory to create
'
)
args
=
parser
.
parse_args
()
testdir
=
create_testdir
()
create_jobs_eo
()
if
args
.
type
==
'
seq
'
:
create_testfiles_seq
(
testdir
)
if
args
.
type
==
'
rand
'
:
...
...
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