ironcache( config => 'iron_cache.json' );
my @iron_caches = $iron_cache_client->get_caches();
my $iron_worker_client = ironworker( config => 'iron_worker.json' );
my @iron_codes = $iron_w
ith path if required.
=back
You can also give the parameters in the config file F<.iron.json> or
F<iron.json> (in local directory) or as environmental variables. Please read
L<Configuring the Offici
e policy. The policies are loaded from
a JSON file which is specified either when creating a
IO::Iron::Iron*::Client object, or
in the config file F<.iron.json> (or equivalent).
=head4 Policies in Co
ient->new();
# Or
$ironcache_client = IO::Iron::IronCache::Client->new(
config => 'iron_cache.json
);
# Operate with caches.
# Get all the existing caches as objects of
# class IO::Iron::Iro
Free text. If you want to put an object or a hash here, it needs to be serialized first; use e.g. JSON, Storable or YAML to stringify it. Then give the resulting string here.
=item - expires_in, How
ation on
policies (limitations to names).
=for stopwords IronCache API SaaS optimized serialized JSON Storable YAML
=for stopwords stringify cas Cas Params IronHTTPCallException Mikko Koivunalho
=f
r_client->delete( 'id' => $code_package_id );
# Tasks
my $task_payload = 'Task payload (can be JSONized)';
my $task = $iron_worker_client->create_task(
'code_name' => $unique_code_package_name,
press::Zip;
$iron_worker_client = IO::Iron::IronWorker::Client->new(
'config' => 'iron_worker.json'
);
my $worker_as_string_ = <<EOF;
print qq{Hello, World!\n};
EOF
my $worker_as_zip;
my $w
empty string. Payload can be any string, or stringified
object, normally JSON.
my $task_payload = 'Task payload (could be JSONized object)';
my $task = $iron_worker_client->create_task(
'code_nam
ted by DZP::OurPkgVersion
use Path::Tiny qw{path};
use Try::Tiny;
use Log::Any qw{$log};
require JSON::MaybeXS;
use File::Spec ();
use File::HomeDir ();
use Hash::Util 0.06 qw{lock_keys unlock
IronMQ config option! It only configures client this client.
'policies', # Filename of JSON file containing policies.
);
}
sub IRON_CLIENT_PARAMETERS {
return (
IRON_CONFIG
YS() );
_read_iron_config_file( \%config, File::Spec->catfile( File::HomeDir->my_home, '.iron.json' ) ); # Homedir
_read_iron_config_env_vars( \%config );
tory).
'payload', # A string of data to be passed to the worker (usually JSON), can be empty (mandatory).
'priority', # The priority queue to run the t
pwords IronWorker API Mikko Koivunalho perldoc CPAN AnnoCPAN ACKNOWLEDGMENTS TODO
=for stopwords JSON runtime timestamp io Timestamp Params IronHTTPCallException STDOUT params msg
=head1 REQUIREMENT
s task (mandatory).
=item payload, A string of data to be passed to the worker (usually JSON), can be empty (mandatory).
=item priority, The priority queue to run the task in. Valid
h if required.
=back
You can also give the parameters in the config file F<.iron.json>
(in home dir) or
F<iron.json> (in current dir) or as environmental variables. Please read
L<http://dev.iron.io/
Free text. If you want to put an object or a hash here, it needs to be serialized first; use e.g. JSON, Storable or YAML to stringify it. Then give the resulting string here.
=item - delay, The item
rds IronMQ API HTTPS optimized OAuth https config Config filename
=for stopwords json dir successfull serialized JSON Storable YAML stringify
=for stopwords unreserves IronHTTPCallException Params s
'(project={Project ID}, code={Task ID}). Got a task\'s log.',
}; # Return plain text, not JSON!
}
sub IRONWORKER_CANCEL_A_TASK {
return {
'action_name' => 'IRONWORKER_CANCEL_A_TA
'GET',
'return' => 'LIST', # Return as JSON.
'retry' => 0,
'require_body' => 0,
'paged' => 0,
'
our $VERSION = '0.14'; # VERSION: generated by DZP::OurPkgVersion
use Log::Any qw{$log};
require JSON::MaybeXS;
use Data::UUID ();
use Hash::Util 0.06 qw{lock_keys lock_keys_plus unlock_keys legal_ke
=> 299;
const my $HTTP_CODE_SERVICE_UNAVAILABLE => 503;
const my $HTTP_CONTENT_TYPE_JSON => q{application/json; charset=utf-8};
sub new {
my ($class) = @_;
$log->tracef( 'Entering new(
my ( $self, $action_verb, $href, $params ) = @_;
my $client = $self->{'client'};
my $json = JSON::MaybeXS->new( utf8 => 1, pretty => 1 );
# TODO assert href is URL
assert_in( $acti