| 1 | package Langertha::Raid::Sequential; | ||
| 2 | # ABSTRACT: Sequential Raid orchestrator | ||
| 3 | 1 | our $VERSION = '0.503'; | |
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Future::AsyncAwait; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | extends 'Langertha::Raid'; | |
| 8 | |||
| 9 | |||
| 10 | 8 | ▶ | async sub run_f { |
|
Subroutine
run_f: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 8 | my ( $self, $ctx ) = @_; | |
| 12 | 8 | $ctx = $self->_coerce_context($ctx); | |
| 13 | |||
| 14 | $ctx->add_trace({ | ||
| 15 | node => ref($self), | ||
| 16 | event => 'sequential_start', | ||
| 17 | 8 | steps => scalar @{$self->steps}, | |
| 18 | }); | ||
| 19 | |||
| 20 | 8 | return await $self->_run_steps_sequentially_f($ctx); | |
| 21 | 1 | } | |
| 22 | |||
| 23 | |||
| 24 | 1 | __PACKAGE__->meta->make_immutable; | |
| 25 | |||
| 26 | 1 | 1; | |
| 27 | |||
| 28 | __END__ | ||
| 29 | |||
| 30 | =pod | ||
| 31 | |||
| 32 | =encoding UTF-8 | ||
| 33 | |||
| 34 | =head1 NAME | ||
| 35 | |||
| 36 | Langertha::Raid::Sequential - Sequential Raid orchestrator | ||
| 37 | |||
| 38 | =head1 VERSION | ||
| 39 | |||
| 40 | version 0.503 | ||
| 41 | |||
| 42 | =head1 SYNOPSIS | ||
| 43 | |||
| 44 | my $raid = Langertha::Raid::Sequential->new( | ||
| 45 | steps => [ $step1, $step2, $step3 ], | ||
| 46 | ); | ||
| 47 | |||
| 48 | my $result = await $raid->run_f($ctx); | ||
| 49 | |||
| 50 | =head1 DESCRIPTION | ||
| 51 | |||
| 52 | Runs child steps in strict order and forwards one shared context through all | ||
| 53 | steps. Final outputs update context input for downstream steps. Non-final | ||
| 54 | results (question/pause/abort/cancelled) are propagated immediately. | ||
| 55 | |||
| 56 | =head2 run_f | ||
| 57 | |||
| 58 | my $result = await $raid->run_f($ctx); | ||
| 59 | |||
| 60 | Executes all steps sequentially with shared context propagation. | ||
| 61 | |||
| 62 | =head1 SUPPORT | ||
| 63 | |||
| 64 | =head2 Issues | ||
| 65 | |||
| 66 | Please report bugs and feature requests on GitHub at | ||
| 67 | L<https://github.com/Getty/langertha-raider/issues>. | ||
| 68 | |||
| 69 | =head2 IRC | ||
| 70 | |||
| 71 | Join C<#langertha> on C<irc.perl.org> or message Getty directly. | ||
| 72 | |||
| 73 | =head1 CONTRIBUTING | ||
| 74 | |||
| 75 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 76 | |||
| 77 | =head1 AUTHOR | ||
| 78 | |||
| 79 | Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/> | ||
| 80 | |||
| 81 | =head1 COPYRIGHT AND LICENSE | ||
| 82 | |||
| 83 | This software is copyright (c) 2026 by Torsten Raudssus. | ||
| 84 | |||
| 85 | This is free software; you can redistribute it and/or modify it under | ||
| 86 | the same terms as the Perl 5 programming language system itself. | ||
| 87 | |||
| 88 | =cut | ||