task

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 2 Imported by: 0

README

a simple task server

configure a db source for set crontab

crontab will auto create task to queue

if task never be consumed will be over

CREATE TABLE `Crontab` (
  `id` int NOT NULL AUTO_INCREMENT,
  `group` varchar(20) NOT NULL,
  `name` varchar(20) NOT NULL,
  `spec` varchar(100) NOT NULL,
  `args` varchar(10240) NOT NULL,
  `active` enum('true','false') NOT NULL DEFAULT 'true',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB;

crontab setting reference by https://github.com/robfig/cron

thanks for Rob Figueiredo

how to create a task by api?

looking for https://github.com/ssgo/task/worker

how to fetch a task by api?

looking for https://github.com/ssgo/task/worker

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