PushTimelog
PushTimelog
PushTimelog(manager: Manager)
flowchart LR
task_schema.plugins.maya_3d_plugin.PushTimelog[PushTimelog]
publisher.core.Push[Push]
publisher.core.Process[Process]
publisher.core.Push --> task_schema.plugins.maya_3d_plugin.PushTimelog
publisher.core.Process --> publisher.core.Push
click task_schema.plugins.maya_3d_plugin.PushTimelog href "" "task_schema.plugins.maya_3d_plugin.PushTimelog"
click publisher.core.Push href "" "publisher.core.Push"
click publisher.core.Process href "" "publisher.core.Process"
Methods:
-
add_callback–Adds a callback function to be executed after the process finishes.
-
add_error–Adds an error to the list of errors.
-
set_status–Sets the status of the process.
Attributes:
-
callbacks(Dict[Type[Callback], Callable]) –Returns the dict of registered callbacks.
-
context(Context) –Returns the shared context.
-
errors(List[ErrorProcess]) –Returns the list of errors encountered during execution.
-
status(StatusProcess) –Returns the current status of the process.
callbacks
property
callbacks: Dict[Type[Callback], Callable]
Returns the dict of registered callbacks.
add_callback
add_callback(callback_type: Callback, callback: callable) -> None
Adds a callback function to be executed after the process finishes.
add_error
add_error(error: Optional[str] = 'Unknown error', details: Optional[str] = 'Unknown details', items: Optional[List[str]] = None) -> None
Adds an error to the list of errors.
Parameters:
-
(errorstr, default:'Unknown error') –The error message or name.
-
(detailsstr, default:'Unknown details') –Detailed description of the error.
-
(itemslist, default:None) –Optional list of items related to the error.
set_status
set_status(status: StatusProcess) -> None