Skip to content

Commit

Permalink
Notes about failure and stalls
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Maischein committed May 22, 2024
1 parent dffcad2 commit 5e19b22
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/MooX/Role/ProgressItem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ MooX::Role::ProgressItem - store information about some progress
=head2 C<< ->new >>
=cut

has 'total' => (
Expand Down Expand Up @@ -141,3 +139,19 @@ C< ->finish() > is called.
=cut

1;

=head1 TO DO
=head2 Handle failure
Currently, we have no handling/events for failing things
=head2 Handle stalls
Timeouts should be handled by the failure above, but we might want to
output a "stalled" status if some time passes without any progress being made.
This would mean storing the C< time() > of last update and having a periodic
callback in the parent handler that checks all jobs for being stalled.
=cut

0 comments on commit 5e19b22

Please sign in to comment.