module
pipen_report.report_manager
Classes
NPMBuildingError
— Error when npm run build failed</>ReportManager
— Initialize the report manager</>
class
pipen_report.report_manager.
NPMBuildingError
(
)
Bases
Exception
BaseException
Error when npm run build failed
class
pipen_report.report_manager.
ReportManager
(
plugin_opts
, outdir
, workdir
, cachedir_for_cloud
)
Initialize the report manager
Methods
build
(
proc
,nobuild
,force_build
,cached
)
— Build report for a process</>check_npm_and_setup_dirs
(
)
— Check if npm is available</>init_pipeline_data
(
pipen
)
— Write data to workdir</>render_proc_report
(
proc
)
— Render the report template for a process</>sync_reports
(
logfn
)
— Sync the reports to the cloud output directory if needed</>
method
check_npm_and_setup_dirs
(
)
Check if npm is available
method
init_pipeline_data
(
pipen
)
Write data to workdir
method
render_proc_report
(
proc
)
Render the report template for a process
Parameters
proc
(Proc) — The processstatus
— The status of the process
method
build
(
proc
, nobuild
, force_build
, cached=False
)
Build report for a process
Parameters
proc
(Proc | str) — The processnobuild
(bool) — Don't build the reportcached
(bool, optional) — Whether the process is cached
method
sync_reports
(
logfn=None
)
Sync the reports to the cloud output directory if needed