Classes¶
brickflow.engine.task.Task
dataclass
¶
Attributes¶
brickflow_default_params: Dict[str, str]
property
¶
builtin_notebook_params: Dict[str, str]
property
¶
cluster: Cluster
instance-attribute
¶
custom_execute_callback: Optional[Callable] = None
class-attribute
instance-attribute
¶
custom_task_parameters: Dict[str, str]
property
¶
databricks_task_type_str: str
property
¶
depends_on: List[Union[Callable, str]] = field(default_factory=lambda : [])
class-attribute
instance-attribute
¶
depends_on_names: Iterator[str]
property
¶
description: Optional[str] = None
class-attribute
instance-attribute
¶
ensure_brickflow_plugins: bool = False
class-attribute
instance-attribute
¶
libraries: List[TaskLibrary] = field(default_factory=lambda : [])
class-attribute
instance-attribute
¶
name: str
property
¶
parents: List[str]
property
¶
task_func: Callable
instance-attribute
¶
task_func_name: str
property
¶
task_id: str
instance-attribute
¶
task_settings: Optional[TaskSettings] = None
class-attribute
instance-attribute
¶
task_type: TaskType = TaskType.BRICKFLOW_TASK
class-attribute
instance-attribute
¶
trigger_rule: BrickflowTriggerRule = BrickflowTriggerRule.ALL_SUCCESS
class-attribute
instance-attribute
¶
workflow: Workflow
instance-attribute
¶
Functions¶
execute(ignore_all_deps: bool = False) -> Any
¶
Source code in brickflow/engine/task.py
get_obj_dict(entrypoint: str) -> Dict[str, Any]
¶
Source code in brickflow/engine/task.py
get_runtime_parameter_values() -> Dict[str, Any]
¶
Source code in brickflow/engine/task.py
handle_notebook_path(entrypoint: str) -> str
staticmethod
¶
Source code in brickflow/engine/task.py
is_valid_task_signature() -> None
¶
Source code in brickflow/engine/task.py
should_skip() -> Tuple[bool, Optional[str]]
¶
Source code in brickflow/engine/task.py
brickflow.engine.task.EmailNotifications
dataclass
¶
brickflow.engine.task.JarTaskLibrary
dataclass
¶
brickflow.engine.task.EggTaskLibrary
dataclass
¶
brickflow.engine.task.WheelTaskLibrary
dataclass
¶
brickflow.engine.task.PypiTaskLibrary
dataclass
¶
Bases: TaskLibrary
Parameters:
Name | Type | Description | Default |
---|---|---|---|
package |
str
|
The package in pypi i.e. requests, requests==x.y.z, git+https://github.com/Nike-Inc/brickflow.git |
required |
repo |
Optional[str]
|
The repository where the package can be found. By default pypi is used |
None
|
brickflow.engine.task.MavenTaskLibrary
dataclass
¶
Bases: TaskLibrary
Parameters:
Name | Type | Description | Default |
---|---|---|---|
coordinates |
str
|
Gradle-style Maven coordinates. For example: org.jsoup:jsoup:1.7.2. |
required |
repo |
Optional[str]
|
Maven repo to install the Maven package from. If omitted, both Maven Central Repository and Spark Packages are searched. |
None
|
exclusions |
Optional[List[str]]
|
List of dependences to exclude. For example: ["slf4j:slf4j", "*:hadoop-client"]. Maven dependency exclusions: https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html. |
None
|
brickflow.engine.task.CranTaskLibrary
dataclass
¶
Bases: TaskLibrary
Parameters:
Name | Type | Description | Default |
---|---|---|---|
package |
str
|
The name of the CRAN package to install. |
required |
repo |
Optional[str]
|
The repository where the package can be found. If not specified, the default CRAN repo is used. |
None
|
brickflow.engine.task.BrickflowTriggerRule
¶
brickflow.engine.task.BrickflowTaskEnvVars
¶
brickflow.engine.task.TaskSettings
dataclass
¶
Attributes¶
email_notifications: Optional[EmailNotifications] = None
class-attribute
instance-attribute
¶
max_retries: Optional[int] = None
class-attribute
instance-attribute
¶
min_retry_interval_millis: Optional[int] = None
class-attribute
instance-attribute
¶
notification_settings: Optional[TaskNotificationSettings] = None
class-attribute
instance-attribute
¶
retry_on_timeout: Optional[bool] = None
class-attribute
instance-attribute
¶
timeout_seconds: Optional[int] = None
class-attribute
instance-attribute
¶
Functions¶
merge(other: Optional['TaskSettings']) -> 'TaskSettings'
¶
Source code in brickflow/engine/task.py
to_tf_dict() -> Dict[str, Optional[str] | Optional[int] | Optional[bool] | Optional[Dict[str, Optional[List[str]]]]]
¶
Source code in brickflow/engine/task.py
brickflow.engine.task.TaskType
¶
Bases: Enum