-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from icgc-dcc/feat/jt-relay
first version with features to run complete workflows with scatter/gather calls
- Loading branch information
Showing
5 changed files
with
219 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ git clone [email protected]:icgc-dcc/jtracker.git | |
cd jtracker | ||
pipsi install . | ||
# or install from PyPI for latest release | ||
# or install from PyPI for latest release (no need to clone the source) | ||
pipsi install jtracker | ||
# run it | ||
|
@@ -29,16 +29,18 @@ jt | |
|
||
## Design and create your workflow | ||
|
||
Follow this example to develop your workflow: https://github.com/icgc-dcc/ega-file-transfer-to-collab | ||
Follow this example to develop your workflow: https://github.com/icgc-dcc/ega-file-transfer-to-collab-jt | ||
|
||
Quick note on workflow development and testing: | ||
|
||
1. You can have workflow definition and workflow execution in one single Git repo, although separating them in dedicated Git repos is recommended for production use. Here is an example: https://github.com/icgc-dcc/jtracker-example-workflows/tree/master/test.0.0.0.jtracker, note that job states folders and worflow folder are in one repo. | ||
|
||
2. It is recommended to use a local Git server for development and testing. Follow this instruction to set up a local git server on a mac: http://www.tomdalling.com/blog/software-processes/how-to-set-up-a-secure-git-server-at-home-osx/. Once set up, you can access it same way as you access github. In my case, `git clone ssh://junjun@localhost:/Users/junjun/mygit/jtracker-demo-workflows.git` | ||
|
||
|
||
## Create a Git repository to manage workflow execution | ||
## Create a Git repository to manage and track workflow task execution | ||
|
||
Here is an example: https://github.com/icgc-dcc/jtracker-example-workflows/tree/master/test.0.1.0.jtracker | ||
Here is an example: https://github.com/icgc-dcc/jtracker-example-workflows/tree/master/ega-file-transfer-to-collab.0.4.0.jtracker | ||
|
||
At this time, you will need to set up this Git repository on your own manually. In the near future, 'jt' cli tool will be able to set it up automatically for you. | ||
|
||
|
@@ -48,7 +50,7 @@ At this time, you will need to set up this Git repository on your own manually. | |
On a task execution host, you can start a worker as follow assuming workflow definition and job json files exist as specified. | ||
|
||
``` | ||
jt -g '[email protected]:icgc-dcc/jtracker-example-workflows' -w test -r 0.1.0 worker | ||
jt -g '[email protected]:icgc-dcc/jtracker-example-workflows' -w ega-file-transfer-to-collab -r 0.4.0 worker | ||
``` | ||
|
||
You can start multiple workers on the same host if there is enough computating resource. You can also start workers in different hosts at the same time. Workflow jobs/tasks will be picked up by individual workers as needed. | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '0.1.0rc2' | ||
__version__ = '0.1.0rc3' | ||
|
||
from .worker import Worker | ||
from .jtracker import JTracker |
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
Oops, something went wrong.