use constant DEBUG => $ENV{MINION_BACKEND_DEBUG} || 0;
use Mojo::IOLoop;
use Mojo::JSON qw(encode_json decode_json);
use Mojo::mysql;
use Scalar::Util qw(blessed);
use Sys::Hostname 'hostname';
use
# Pre-compute parameters to reduce time holding DB transaction
my @insert_params = (
encode_json( $args ),
$options->{attempts} // 1,
$options->{delay} // 0,
($options->{expire})x2,
_value`) VALUES '
. join( ', ', map '( ?, ?, ? )', keys %notes );
$notes{ $_ } = encode_json( $notes{ $_ } ) for keys %notes;
}
my $db = $self->mysql->db;
# If we are adding data in r