Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
STR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anne-Sophie Denommé-Pichon
STR
Commits
b27830b3
Commit
b27830b3
authored
Feb 15, 2020
by
Anne-Sophie Denommé-Pichon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create script to check parallelization of launch_pipeline.sh
parent
dc46dad7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
fake_pipeline.sh
fake_pipeline.sh
+33
-0
No files found.
fake_pipeline.sh
0 → 100755
View file @
b27830b3
#! /bin/sh
### ASDP PIPELINE ###
## launch_pipeline.sh
## Version : 0.0.1
## Licence : aGPLv3
## Description: used to test if pipeline is parallelized on n machines
## Usage: Launched in place of pipeline.sh. To use it, replace pipeline.sh by fake_pipeline.sh in launch_pipeline.sh
## Output: FIXME
## Requirements: FIXME
## Author : anne-sophie.denomme-pichon@u-bourgogne.fr
## Creation Date : 20191208
## last revision date : 20200215
## Known bugs : None
SAMPLE
=
"
$1
"
# Check if sample is specified
if
[
-z
"
$SAMPLE
"
]
then
echo
"Sample is not specified"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
exit
1
fi
DURATION
=
$((
RANDOM%15+5
))
echo
"Starting
$SAMPLE
"
sleep
$DURATION
echo
" Finished
$SAMPLE
(
$DURATION
sec)"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment