json-job-dispatch

Crates.iojson-job-dispatch
lib.rsjson-job-dispatch
version3.0.2
sourcesrc
created_at2017-01-13 17:48:23.365018
updated_at2023-05-30 18:43:39.66956
descriptionDispatch jobs described by JSON files and sort them according to their status.
homepage
repositoryhttps://gitlab.kitware.com/utils/rust-json-job-dispatch
max_upload_size
id8042
size101,496
Kitware, Inc. (kwrobot)

documentation

https://docs.rs/json-job-dispatch/~3.0

README

JSON Job Dispatch

A library which watches a directory using inotify for .json job files and dispatches them to registered handlers. Jobs are archived into accept/ and reject/ directories for auditing purposes. Additionally, companion files with a datestamp of when the job was handled and, for rejected jobs, a file containing the reason for the rejection is also created.

The design goal is to allow the daemon handling jobs to crash and be resiliant against crashes by using the filesystem as a simple object store for jobs which need handled and an archive of completed jobs. Atomic renames are used to relocate files, so the input directory must reside on the same filesystem as the archival directories.

Commit count: 0

cargo fmt