Returns the cancelling batch's details.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
t;
},
);
$special_dist{"parse-cpan-meta"} = $special_dist{"cpan-meta-yaml"} = $special_dist{"json-pp"} = $special_dist{"cpan-meta"};
sub add_bundles_to_inc {
opendir my $dh, $bundle_dir or d
se Carp;
use Data::Dumper;
use English qw(-no_match_vars);
use HTTP::Request;
use IO::Scalar;
use JSON;
use LWP::UserAgent;
use List::Util qw(none);
our $VERSION = '1.60.4';
use parent qw(Class::Acc
';
}
my $api_request = {
text => $markdown,
mode => $mode,
};
$req->content( to_json($api_request) );
my $rsp = $ua->request($req);
croak 'could not render using GitHub API: '
package Minion::Command::minion::job;
use Mojo::Base 'Mojolicious::Command';
use Mojo::JSON qw(decode_json);
use Mojo::Util qw(getopt tablify);
has description => 'Manage Minion jobs';
has usage
\@args,
'A|attempts=i' => \$options->{attempts},
'a|args=s' => sub { $args = decode_json($_[1]) },
'b|broadcast=s' => (\my $command),
'd|delay=i' => \$options->{delay},
'
i' => \(my $limit = 100),
'n|notes=s' => sub { $options->{notes} = decode_json($_[1]) },
'o|offset=i' => \(my $offset = 0),
'P|parent=s' => sub { push
package Text::ASCIITable::EasyTable;
use strict;
use warnings;
use Data::Dumper;
use JSON;
use List::Util qw(pairs);
use Scalar::Util qw(reftype);
use Text::ASCIITable;
use parent qw(Exporter);
ou
)
if !$options{json};
# return an array of hashes
my @json_data;
foreach my $row ( @{$data} ) {
my %hashed_row = map { $_ => shift @{$row} } @columns;
push @json_data, \%hashed_row
;
}
return JSON->new->pretty->encode( \@json_data );
}
########################################################################
sub _render_table {
##############################################
self->pg->db->query(
q{UPDATE minion_workers SET inbox = inbox || $1::JSONB WHERE (id = ANY ($2) OR $2 = '{}')},
{json => [[$command, @$args]]}, $ids)->rows;
}
sub dequeue {
my ($self, $id,
$7, $8, $9, $10)
RETURNING id}, {json => $args}, $options->{attempts} // 1, $options->{delay} // 0, $options->{expire},
$options->{lax} ? 1 : 0, {json => $options->{notes} || {}}, $options-
e) = @_;
return !!$self->pg->db->query('UPDATE minion_jobs SET notes = JSONB_STRIP_NULLS(notes || ?) WHERE id = ?',
{json => $merge}, $id)->rows;
}
sub receive {
my $array = shift->pg->db->qu
{
perl => [
qr/^5\.18\.3$/,
],
subs => [ [ \&_patch_5183_metajson ] ],
},
{
perl => [
qr/^5\.24\.[012]$/,
],
subs => [ [ \&_p
LOC_SED,
END
}
}
sub _patch_5183_metajson {
_patch(<<'DOGSAY');
diff --git a/META.json b/META.json
index 64caea7..200e324 100644
--- META.json
+++ META.json
@@ -118,7 +118,7 @@
"TestInit
>render('minion/dashboard', history => $history);
}
sub _history {
my $c = shift;
$c->render(json => $c->minion->history);
}
sub _list_jobs {
my $c = shift;
my $v = $c->validation;
$v->op
_to($c->url_for('minion_jobs')->query(id => $ids));
}
sub _stats {
my $c = shift;
$c->render(json => $c->minion->stats);
}
sub _unlock {
my $c = shift;
my $v = $c->validation;
$v->require
l remove the field. The new values will
get serialized by L<Minion/"backend"> (often with L<Mojo::JSON>), so you shouldn't send objects and be careful with
binary data, nested data structures with has
Code: C<200>
User deleted successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
de: C<200>
User retrieved successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
lication/json>
=head3 Responses
=head4 Status Code: C<200>
User role updated successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Exampl
de: C<200>
Invite deleted successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
: C<200>
Invite retrieved successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
de: C<200>
Invites listed successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
);
=head3 Parameters
=over 4
=back
=head3 Request Body
=head3 Content Type: C<application/json>
Example:
{
"projects" : [
null
]
}
Code: C<200>
User invited successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
exporter. Default: depends on
availability.
Possible values are:
=over
=item C<http/json>
Sends data as JSON over HTTP.
=item C<http/protobuf>
Sends data as a Protobuf-encoded blob over HTTP.
shift);
$self->backend->$method(@_);
return $self;
}
sub _dump { local $YAML::XS::Boolean = 'JSON::PP'; Dump(@_) }
sub _iterator {
my ($self, $jobs, $options) = (shift, shift, shift // {});
new job with C<inactive> state. Arguments get serialized by the L</"backend"> (often with L<Mojo::JSON>), so
you shouldn't send objects and be careful with binary data, nested data structures with has
ith arbitrary metadata for this job that gets serialized by the L</"backend"> (often with
L<Mojo::JSON>), so you shouldn't send objects and be careful with binary data, nested data structures with has
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
ent Type: C<application/json>
=head3 Responses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<O
,
"bytes": 2147483648,
"created_at": 1719184911,
"filename": "training_examples.jsonl",
"purpose": "fine-tune",
"status": "completed",
"expires_at": 1719127296,
"bytes": 2147483648,
"created_at": 1719186911,
"filename": "training_examples.jsonl",
"purpose": "fine-tune",
}
}
=back
=head1 SEE ALSO
L<OpenAPI::Client::Ope
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
);
=head3 Parameters
=over 4
=back
=head3 Request Body
=head3 Content Type: C<application/json>
Realtime session object configuration.
Example:
{
"client
e: C<200>
Session created successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma