datatogether / task_mgmt

Service for managing & executing archiving tasks written in Golang
https://task-mgmt.archivers.space
GNU Affero General Public License v3.0
2 stars 1 forks source link
golang service

Task Management

GitHub Slack License Codecov CI

Service for managing & executing archiving tasks. All task definitions are in the taskdefs, directory. task_mgmt manages the state of tasks as they move through the queue, questions like "what tasks are currently running?". As tasks are completed task_mgmt updates records of when tasks started, finished, or failed.

License & Copyright

Copyright (C) 2017 Data Together
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.0.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Getting Involved

We would love involvement from more people! If you notice any errors or would like to submit changes, please see our Contributing Guidelines.

We use GitHub issues for tracking bugs and feature requests and Pull Requests (PRs) for submitting changes

Usage

If you have docker & docker-compose, clone this repo & run the following:

# first, cd into the project directory, then run
docker-compose up

# this should respond with json, having an empty "data" array
http://localhost:8080/tasks

# this should respond with json, with meta.message : "task successfully enqueud"
http://localhost:8080/ipfs/add?url=https://i.redd.it/5kwih5n5i58z.jpg

# requesting this again should now show a task in the data array, including a "succeeded" timestamp:
http://localhost:8080/tasks

# congrats, you've put this url of a jpeg on ipfs: https://i.redd.it/5kwih5n5i58z.jpg
# view it here:
https://ipfs.io/ipfs/QmeDchVWNVxFcEvnbtBbio88UwrHSCqEAXpcj2gX3aufvv

# connect to your ipfs server here:
# click the "files" tab, and you'll see this hash: QmeDchVWNVxFcEvnbtBbio88UwrHSCqEAXpcj2gX3aufvv
# this means you have a local ipfs node serving the image we just processed
https://localhost:5001/webui

Development

Coming soon!