task_mgmt

command module
v0.0.0-...-a3f3dab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2017 License: AGPL-3.0 Imports: 32 Imported by: 0

README

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.

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!

Documentation

Overview

transactional email handled by postmark

abstractions for working with postgres databases

Task Management manages tasks, including tracking the state of tasks as they move through a queue As tasks are completed task_mgmt updates records of when tasks started, stopped, etc.

Directories

Path Synopsis
This package is a carry-over from a previous incarnation of task_mgmt it should be cleaned up & removed in favour of types from the github.com/datatogether/archive package
This package is a carry-over from a previous incarnation of task_mgmt it should be cleaned up & removed in favour of types from the github.com/datatogether/archive package
taskdefs
pod

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL