Module gvars
global variables used for logging and execution management. CASE_INFO if set, the utils.LogExHandler decorator function will record the value for later troubleshooting and then clear it to ensure subsequent errors are not misattributed. Can be included in the default_return argument of same for advanced ops. See pdf_utils.match_n_filename_fields() for an example. *_COUNT Incremented as DB and S3 operations occur to log total number of batches/jobs created and total number of keys moved/deleted at the conclusion of the aws_extractor.extract_buckets routine. MAX_EX_DEPTH default max exception depth for LogExHandler decorator when is_generator is True. Can be overridden via max_depth kwarg. PROCESSED_FACILITIES Used by aws_extractor.extract_buckets to keep track of which facilities have already been processed when recovering from an error in the main thread.
Classes
class ErrNotifyInput (facility: str, function_name: str, exc_info: tuple[type[BaseException], BaseException, traceback] | tuple[None, None, None])
-
tuple of args for notify.ErrorNotification.from_exc_info()
Ancestors
- builtins.tuple
Instance variables
var exc_info : tuple[type[BaseException], BaseException, traceback] | tuple[None, None, None]
-
Alias for field number 2
var facility : str
-
Alias for field number 0
var function_name : str
-
Alias for field number 1
class ProcErrNotifyInput (facility: str, function_name: str, error_type: str = 'N/A', error_message: str = 'N/A', traceback: str = 'N/A')
-
tuple of args for notify.ErrorNotification dataclass
Ancestors
- builtins.tuple
Instance variables
var error_message : str
-
Alias for field number 3
var error_type : str
-
Alias for field number 2
var facility : str
-
Alias for field number 0
var function_name : str
-
Alias for field number 1
var traceback : str
-
Alias for field number 4