Created
December 15, 2017 19:14
-
-
Save lindleyw/a82e9136b12dd6718a3926df878d9eb2 to your computer and use it in GitHub Desktop.
View/edit Minion job queue with Yancy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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