NAME
DBIO::Storage::BlockRunner - Execute code blocks with transaction wrapping and retry logic
VERSION
version 0.900000
DESCRIPTION
Utility object used by DBIO::Storage::DBI to execute coderefs with transaction wrapping and retry semantics.
ATTRIBUTES
storage
The storage object used for transaction methods and exception handling.
wrap_txn
Boolean. If true, wrap each execution attempt in a transaction.
retry_handler
Coderef deciding whether to retry after a failure.
retry_debug
Boolean controlling retry debug output.
max_attempts
Maximum number of failed attempts before aborting.
failed_attempt_count
Internal counter of failed attempts in the current run.
exception_stack
Collected exceptions from failed attempts in the current run.
METHODS
last_exception
Returns the most recent exception captured in exception_stack.
throw_exception
Delegates exception throwing to the configured storage.
run
Execute a coderef with configured retry and transaction behavior.
AUTHOR
DBIO & DBIx::Class Authors
COPYRIGHT AND LICENSE
Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.