commonutil.statusfile

狀態報告檔案類別 / Status report file classes

class RuntimeStatusReport(report_path, *args, **kwds)[source]

執行時期狀態報告檔 / Runtime status report file

enter_flow(flow_name)[source]

進入一個流程

Enter a flow with given name

Parameters:flow_name – 流程名稱 / Flow name
flow(flow_name, *args, **kwds)[source]

進行一個流程,搭配 with 關鍵字使用

Going to run a flow. Use with with keyword.

Parameters:flow_name – 流程名稱 / Flow name
leave_flow()[source]

離開流程

Left latest entered flow

update(msg, *args, **kwds)[source]

更新狀態文字,會打開指定的狀態檔並寫入

Open status file and update status text. Close file after update completed.

Parameters:msg – 狀態文字 / Status text