Abstract¶
flowtask.tasks.abstract
¶
AbstractTask
¶
Bases: ABC
AbstractTask.
Base class for all Dataintegration tasks.
stats
property
¶
stats. Return a TaskMonitor object with all collected stats. Returns: TaskMonitor: stat object.
check_syntax
¶
check_syntax.
Validates the syntax of a JSON task based on a predefined schema. Ensures that the task has all required fields and correct data structures.
Parameters:¶
task : dict The task definition to validate.
Returns:¶
bool Returns True if the task is valid; raises TaskParseError otherwise.
Raises:¶
TaskParseError If the task does not conform to the expected schema, an error is raised with details about what failed.