task-processing-service

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

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

task-processing-service 🔄

~

Build Status Go Report Card License

Overview

This is an HTTP job processing service.

A job is a collection of tasks, where each task has a name and a shell command. Tasks may depend on other tasks and require that those are executed beforehand. The service takes care of sorting the tasks to create a proper execution order.

Call the service

curl 52.188.177.204
curl -X POST -d @samples/mytasks.json http://52.188.177.204/script
curl -X POST -d @samples/mytasks.json http://52.188.177.204/script | bash
curl -X POST -d @samples/mytasks.json http://52.188.177.204/sort

Setup and run locally

go mod vendor
go run main.go

Run tests

Prerequisites
go generate ./...
ginkgo -v

Sample calls locally

curl -X POST -d @samples/mytasks.json http://localhost:8080/script | bash
curl -X POST -d @samples/mytasks.json http://localhost:8080/sort

Build docker image locally

docker build -t <name>/task_processing_service:<tag> .
docker run -it -p 8080:8080 <name>/task_processing_service:<tag>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
app
env
handlers/handlers_mocks
Package handlers_mocks is a generated GoMock package.
Package handlers_mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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