Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MessdatenSilo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Kloock
MessdatenSilo
Commits
dd19d5b2
Commit
dd19d5b2
authored
2 years ago
by
SirWalross
Browse files
Options
Downloads
Patches
Plain Diff
Add lock to only execute pull.bash only once at a time
parent
5f7ff3cd
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+0
-2
0 additions, 2 deletions
.gitignore
scripts/pull.bash
+6
-0
6 additions, 0 deletions
scripts/pull.bash
scripts/push.bash
+3
-2
3 additions, 2 deletions
scripts/push.bash
with
9 additions
and
4 deletions
.gitignore
+
0
−
2
View file @
dd19d5b2
*.txt
out/*
CHANGELOG.md
data/data
logs/log
profiling.log
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scripts/pull.bash
+
6
−
0
View file @
dd19d5b2
#!/bin/bash
# wait until all other instances of the script are finished
while
pidof
-o
%PPID
-x
"pull.bash"
>
/dev/null
;
do
# check every 60 seconds
sleep
60
done
cd
`
dirname
"
$0
"
`
/..
echo
$(
date
'+%F %H:%M:%S'
)
|
tee
-a
bash.log
git pull 2>&1 |
tee
-a
bash.log
...
...
This diff is collapsed.
Click to expand it.
scripts/push.bash
+
3
−
2
View file @
dd19d5b2
...
...
@@ -2,11 +2,12 @@
ls
-la
.
ls
-la
data
ls
-la
log
ls
-la
logs
ps aux
scripts/./write.bash
pip
install
multiprocessing_logging
pip
3
install
multiprocessing_logging
python3 measure.py
git add
.
...
...
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