Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/livingbio/taskworkerluigi


https://github.com/livingbio/taskworkerluigi

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

結構
===

1. manager: task worker, 設定task 的部分
2. resource: client 處理task

install
---
```
pip install -r require.txt
```

run sample
---
run lugi server
```
luigid --address={localhost} --port={8082}
```
address & port 的預設值, 沒給就是上述

run task worker server
```
cd resource/bash
python manage.py runserver 0.0.0.0:1235
```

execute
```
cd manager/
python bash.py
```

這樣就會把bash/delay ~> 0.0.0.0:1235 上面執行 並等待結果了!!
localhost:8082 就可以看到local的lugi server

之後 task 寫好後就可以傳Luigi server 用cronjob 去跑了(設定一下worker server & remote 的ssh keygen 就可以remote git了~ )