ate minion_workers set inbox =
json_set(inbox, '$[' || json_array_length(inbox) || ']', json(?))} .
(@$ids ? " where id in ($ids_in)" : ''),
{json => [$command, @$args]}, @$ids
)->
, ?, ?)},
{json => $args}, $options->{attempts} // 1, $options->{delay} // 0,
@$options{qw(expire expire)}, $options->{lax} ? 1 : 0, {json => $options->{notes} || {}},
{json => ($options->
->db->query(
qq{select id, args, attempts,
(select json_group_array(distinct child.id)
from minion_jobs as child, json_each(child.parents) as parent_id
where j.id = parent