UNPKG

ticketman

Version:

A simple pull-based job/ticket system contians a centeral ticket dispatcher and distributed workers. This system is written in NodeJS, runing on MongoDB

18 lines (14 loc) 367 B
// Generated by CoffeeScript 1.12.5 (function() { var ALL_STATUS; ALL_STATUS = ['pending', 'processing', 'completed', 'abandoned']; module.exports = { PENDING: 'pending', PROCESSING: 'processing', COMPLETE: 'completed', ABANDON: 'abandoned', isValid: function(status) { return ~ALL_STATUS.indexOf(status); } }; }).call(this);