2019-06-01 11:45:20 -04:00
2019-06-01 11:45:20 -04:00
2019-06-01 11:45:20 -04:00
2019-02-23 20:39:52 -05:00
2019-03-05 21:28:29 -05:00
2019-06-01 11:45:20 -04:00
2019-05-05 13:52:04 -04:00

Build Status CodeFactor

General purpose 'set and forget' task runner and API wrapper for simon987/task_tracker.

Running tests

cd src
python -m unittest discover

Usage (task runner daemon)

Python 3.7

git clone https://github.com/simon987/task_tracker_drone
cd task_tracker_drone
python -m pip install -r requirements.txt

cd src
python ./drone.py "http://exemple-api-url.com/" "alias"
# You will have to manually grant permission to the worker from the
# web UI (For private/hidden projects)

Usage (Library)

git submodule add https://github.com/simon987/task_tracker_drone

In your project:

from task_tracker_drone.src.tt_drone.api import TaskTrackerApi, Worker, LOG_TRACE

api = TaskTrackerApi(https://tt.simon987.net/api)

worker = Worker.from_file(api)
if not worker:
    worker = api.make_worker("alias")
    worker.dump_to_file()

worker.fetch_task(project_id=1)
worker.submit_task(project=1, 
    recipe="",
    priority="",
    max_assign_time=1,
    hash64=0,
    unique_str="",
    verification_count=1,
    max_retries=1)
worker.bulk_submit_task(project=1, tasks=[])
worker.release_task(task_id=0, result=0, verification=0)
worker.get_project_list()
worker.get_secret(project=1)
worker.log(level=LOG_TRACE, message="", timestamp=0, scope="")
# You will have to manually grant permission from the web UI
worker.request_access(project=1, assign=True, submit=True)
Description
No description provided
Readme GPL-3.0 60 KiB
Languages
Python 96.7%
Shell 3.3%