curatend-batch

command module
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

CurateND-Batch

APACHE 2 License Contributing Guidelines Go Report Card

This repository provides code to run the batch ingest infrastructure for CurateND. Most of the code to perform the actual processing is in the ROF gem. This code provides a simple job manager. It is a work in progress, and we may move to a standard work-queue system in the future.

Format of this Repository

This repository is deployed using capistrano and puppet, and, since it is "rubyish", it also invokes bundler. The deploy then compiles the Go code, which is in a subdirectory, and installs that. Finally the puppet scripts run and setup the environment, and install the configuration files (e.g. start the Go service at startup).

The Go service will monitor a directory for new files. It will spawn a ROF process to handle the new files. In this way most of the processing logic is in the ROF code, and the Go code is only concerned with monitoring directories and starting processes. The Go code does track workflow steps, and provides a REST API to monitor and control the overall process.

Getting Started

To run locally:

  • Make sure you have $GOROOT and $GOPATH set.
  • cd /path/to/this/repository
  • go build - This will make an executable file
  • ./curatend-batch - Run the executable; it will by default run on port 15000

Running tests

For batch:

$ cd batches
$ go test

Sentry

CurateND-Batch can optionally send error messages to the Sentry service. Enable it by setting the environment variables SENTRY_DSN, SENTRY_RELEASE, and SENTRY_ENVIRONMENT.

Documentation

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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