2020-07-05 11:16:40 -04:00
2019-06-14 14:58:18 -04:00
2019-06-14 14:58:18 -04:00
2019-02-23 20:39:52 -05:00
2019-03-05 21:28:29 -05:00
2020-07-05 11:16:40 -04:00
2019-06-14 14:58:18 -04:00

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)

(Deprecated, please use task_tracker_drone_go to use as a task runner)

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%