Skip to content

Commit

Permalink
Merge pull request #5 from OpenKBC/dev-branch
Browse files Browse the repository at this point in the history
Version up
  • Loading branch information
swiri021 authored Nov 29, 2021
2 parents 732c164 + eef945a commit 585bd5d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@
* Current version has a problem with CSRF token. If you have BAD REQUEST error, click refresh button on your browser(Sorry!)

### Version history (Development phase)
* version(v1.0.4) Updated log process
* version(v1.0.3) bug fix
* version(v1.0.2) docker-compose
* version(v1.0.1) imported celery-redis for workers and communication
* version(v1.0.0) does not have loading spinner, please wait for browser spinne instead of it
* version(v1.0.1) imported celery-redis for workers and communication, loading spinner
* version(v1.0.0) Initial launch

### Requirements
- The controller should be located to same root folder with pipeline folders
- All pipelines should have same snakefile name(Snakemake) and configuration(config.yaml)
- Don't change Dockerfile in pipelines
- Requirements of pipeline(requirements.txt) needs to be copied to pipelines/ folder
- Requirements of pipeline(requirements.txt) needs to be copied to pipelines/ folder(copy to requirements.txt inside pipelines/ folder)
- Structure example:
```
(root)
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
depends_on:
- redis
working_dir: /pipeline_controller
command: conda run -n pipeline_controller_base gunicorn --bind 0.0.0.0:5000 --workers 2 --threads 4 --worker-class gthread connector:app
command: conda run -vv -n pipeline_controller_base gunicorn --bind 0.0.0.0:5000 --workers 2 --threads 4 --worker-class gthread connector:app
#command: tail -f /dev/null #(Testing purpose)
container_name: snakemakeController

Expand All @@ -35,7 +35,7 @@ services:
limits:
memory: 8000m
working_dir: /pipeline_controller
command: conda run -n pipeline_controller_base celery -A app.celery worker --loglevel=info
command: conda run -vv -n pipeline_controller_base celery -A app.celery worker --loglevel=info
#command: tail -f /dev/null #(Testing purpose)
depends_on:
- redis
Expand Down
2 changes: 1 addition & 1 deletion pipelines/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM swiri021/snakemake-gui-controller:v1.0.3
FROM swiri021/snakemake-gui-controller:v1.0.4

COPY . .
RUN pip install -r requirements.txt
4 changes: 4 additions & 0 deletions pipelines/test-pipeline-1/import_files/put_string.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from sys import argv
import pandas as pd
import time

count_start = 0
with open(argv[1], "r") as f:
data = f.read()

time.sleep(3)

with open(argv[2], "w") as rw:
rw.write(data+("-this is test result"))
3 changes: 3 additions & 0 deletions pipelines/test-pipeline-1/import_files/sum.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from sys import argv
import time

count_start = 0
with open(argv[1], "r") as f:
for line in f.readlines():
count_start+=int(line)

time.sleep(3)

with open(argv[2], "w") as rw:
rw.write(str(count_start))

0 comments on commit 585bd5d

Please sign in to comment.