Skip to content

Instantly share code, notes, and snippets.

@lindleyw
Created December 15, 2017 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindleyw/a82e9136b12dd6718a3926df878d9eb2 to your computer and use it in GitHub Desktop.
Save lindleyw/a82e9136b12dd6718a3926df878d9eb2 to your computer and use it in GitHub Desktop.
View/edit Minion job queue with Yancy
plugin 'Yancy' => {
backend => 'sqlite:' . app->config->{dbname},
collections => {
minion_jobs => {
type => 'object',
properties => {
id => {
type => 'integer',
readOnly => 1,
},
created => {
type => 'string',
format => 'date-time',
readOnly => 1,
},
finished => {
type => [ 'string', 'null' ],
format => 'date-time',
readOnly => 1,
},
args => {
type => [ 'string', 'null' ], # NOTE: JSON
},
priority => { type => 'integer', },
attempts => { type => 'integer', },
queue => { type => 'string', },
result => { type => [ 'string', 'null' ], },
retried => { type => [ 'string', 'null' ], },
started => { type => [ 'string', 'null' ], },
state => { enum => [qw(inactive active failed finished)], },
}
}
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment