taskd
: Task Daemon for Decentralized Task Execution for Long-Running TasksThe project taskd
is a web service for script execution environment with workspace management. It allows you to create a workspace, upload a script, execute the script, and delete the workspace.
To get the server up and running, follow these steps:
Install dependencies:
pip install -r requirements.txt
redis-server
:
apt-get install redis-server
and run it using sudo systemctl start redis-server
rq worker
:
pip install rq
and run it using rq worker
rq-dashboard
:
pip install rq-dashboard
and run it using rq-dashboard
uvicorn main:app --reload
:
pip install uvicorn
and run it using uvicorn main:app --reload
http://localhost:8000/docs
for the docsThe application provides several API endpoints for managing workspaces and executing scripts. These are defined in routes.py
.
Scripts are executed in their respective workspaces. The output of the script execution is logged to a file in the workspace. This is handled by the execute_script
function in utils.py
.
For more detailed information about the application and its usage, refer to the docs.