colrev.ops.prep_debug.PrepDebug¶
- class PrepDebug(*, review_manager, notify_state_transition_operation, polish)[source]¶
Bases:
Prep
Debug prepare records (metadata)
Methods
Check the operation precondition
Conclude the operation (stop Docker containers)
Decorator for operations
main
- rtype:
Any
Notify the review_manager about the next operation
Prepare a record (based on package_endpoints in the settings)
run_debug
- rtype:
Any
Set IDs (regenerate).
Setup a custom prep script
Attributes
max_retries_on_error
pad
polish
timeout
type
debug_ids
commit_sha
- check_precondition()¶
Check the operation precondition
- Return type:
None
- conclude()¶
Conclude the operation (stop Docker containers)
- Return type:
None
- classmethod decorate()¶
Decorator for operations
- Return type:
Callable
- notify(*, state_transition=True)¶
Notify the review_manager about the next operation
- Return type:
None
- prepare(item)¶
Prepare a record (based on package_endpoints in the settings)
- Return type:
dict
- set_ids()¶
Set IDs (regenerate). In force-mode, all IDs are regenerated and PDFs are renamed
- Return type:
None
- setup_custom_script()¶
Setup a custom prep script
- Return type:
None