This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
237 changed files
with
13,636 additions
and
8,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
DEFAULT_LOG_LEVEL=info | ||
DEFAULT_IP=0.0.0.0 | ||
DEFAULT_PORT=8000 | ||
DEFAULT_GUNICORN_WORKERS_COUNT=5 | ||
|
||
LOOM_LOG_LEVEL=${LOOM_LOG_LEVEL:-$DEFAULT_LOG_LEVEL} | ||
LOOM_MASTER_INTERNAL_IP=${LOOM_MASTER_INTERNAL_IP:-$DEFAULT_IP} | ||
LOOM_MASTER_INTERNAL_PORT=${LOOM_MASTER_INTERNAL_PORT:-$DEFAULT_PORT} | ||
LOOM_MASTER_GUNICORN_WORKERS_COUNT=${LOOM_MASTER_GUNICORN_WORKERS_COUNT:-$DEFAULT_GUNICORN_WORKERS_COUNT} | ||
|
||
|
||
BIN_PATH="`dirname \"$0\"`" | ||
|
||
# Wait for database to become available | ||
RETRIES=30 | ||
n=0 | ||
while : | ||
do | ||
# break if db connection is successful | ||
$BIN_PATH/../loomengine/master/manage.py inspectdb > /dev/null 2>%1 && break | ||
|
||
# exit if retries exceeded | ||
if [ $n -ge $RETRIES ] | ||
then | ||
>&2 echo "Timeout while waiting for database" | ||
exit 1; | ||
fi | ||
|
||
sleep 1 | ||
n=$[$n+1] | ||
done | ||
|
||
$BIN_PATH/../loomengine/master/manage.py migrate | ||
$BIN_PATH/../loomengine/master/manage.py collectstatic --noinput | ||
|
||
gunicorn loomengine.master.master.wsgi --bind ${LOOM_MASTER_INTERNAL_IP}:${LOOM_MASTER_INTERNAL_PORT} --log-level ${LOOM_LOG_LEVEL} --capture-output -w ${LOOM_MASTER_GUNICORN_WORKERS_COUNT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
BIN_PATH="`dirname \"$0\"`" | ||
|
||
DEFAULT_LOG_LEVEL=info | ||
|
||
LOOM_LOG_LEVEL=${LOOM_LOG_LEVEL:-$DEFAULT_LOG_LEVEL} | ||
|
||
# omitting --without-gossip causes missed heartbeat errors | ||
celery beat -A loomengine.master.master -l ${LOOM_LOG_LEVEL} --workdir=${BIN_PATH}/../loomengine/master | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
loom test unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
BIN_PATH="`dirname \"$0\"`" | ||
|
||
DEFAULT_LOG_LEVEL=info | ||
DEFAULT_CELERY_CONCURRENCY=30 | ||
|
||
LOOM_LOG_LEVEL=${LOOM_LOG_LEVEL:-$DEFAULT_LOG_LEVEL} | ||
LOOM_WORKER_CELERY_CONCURRENCY=${LOOM_WORKER_CELERY_CONCURRENCY:-$DEFAULT_CELERY_CONCURRENCY} | ||
|
||
# omitting --without-gossip causes missed heartbeat errors | ||
celery -c ${LOOM_WORKER_CELERY_CONCURRENCY} -A loomengine.master.master -l ${LOOM_LOG_LEVEL} -P eventlet worker --workdir=${BIN_PATH}/../loomengine/master --without-gossip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
To run this workflow: | ||
|
||
1. If running for the first time, start the server | ||
|
||
loom server start --settings-file local.conf | ||
|
||
2. Import the input files | ||
|
||
loom import files hello.txt world.txt | ||
|
||
3. Import the template | ||
|
||
loom import template hello_world.yaml | ||
|
||
4. Select inputs and execute the run | ||
|
||
loom run hello_world hello=hello.txt world=world.txt | ||
|
||
5. Monitor the run from the commandline | ||
|
||
loom show run hello_world --detail | ||
|
||
6. Monitor the run in the browser | ||
|
||
loom browser | ||
|
||
7. If you want to delete the Loom server | ||
|
||
loom server delete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
NOTE: This example does not work currently! The parallel feature is not yet available. | ||
This template demonstrates how parallel steps WILL BE implemented using | ||
"scatter" and "gather" modes on inputs and outputs. | ||
|
||
To run this workflow: | ||
|
||
1. If running for the first time, start the server | ||
|
||
loom server start --settings-file local.conf | ||
|
||
2. Import the input file | ||
|
||
loom import file wordfile.txt | ||
|
||
3. Import the template | ||
|
||
loom import template word_scoring.yaml | ||
|
||
4. Select inputs and execute the run | ||
|
||
loom run word_scoring wordfile=wordfile.txt | ||
|
||
5. Monitor the run from the commandline | ||
|
||
loom show run word_scoring --detail | ||
|
||
6. Monitor the run in the browser | ||
|
||
loom browser | ||
|
||
7. If you want to delete the Loom server | ||
|
||
loom server delete |
Oops, something went wrong.