You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flytekit/core/base_task.py
+30-16Lines changed: 30 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -115,21 +115,18 @@ class TaskMetadata(object):
115
115
116
116
See the :std:ref:`IDL <idl:protos/docs/core/core:taskmetadata>` for the protobuf definition.
117
117
118
-
Args:
119
-
cache (bool): Indicates if caching should be enabled. See :std:ref:`Caching <cookbook:caching>`
120
-
cache_serialize (bool): Indicates if identical (ie. same inputs) instances of this task should be executed in serial when caching is enabled. See :std:ref:`Caching <cookbook:caching>`
121
-
cache_version (str): Version to be used for the cached value
122
-
cache_ignore_input_vars (Tuple[str, ...]): Input variables that should not be included when calculating hash for cache
123
-
interruptible (Optional[bool]): Indicates that this task can be interrupted and/or scheduled on nodes with
124
-
lower QoS guarantees that can include pre-emption. This can reduce the monetary cost executions incur at the
125
-
cost of performance penalties due to potential interruptions
126
-
deprecated (str): Can be used to provide a warning message for deprecated task. Absence or empty str indicates
127
-
that the task is active and not deprecated
118
+
Attributes:
119
+
cache (bool): Indicates if caching should be enabled. See :std:ref:`Caching <cookbook:caching>`.
120
+
cache_serialize (bool): Indicates if identical (i.e. same inputs) instances of this task should be executed in serial when caching is enabled. See :std:ref:`Caching <cookbook:caching>`.
121
+
cache_version (str): Version to be used for the cached value.
122
+
cache_ignore_input_vars (Tuple[str, ...]): Input variables that should not be included when calculating hash for cache.
123
+
interruptible (Optional[bool]): Indicates that this task can be interrupted and/or scheduled on nodes with lower QoS guarantees that can include pre-emption.
124
+
deprecated (str): Can be used to provide a warning message for a deprecated task. An absence or empty string indicates that the task is active and not deprecated.
128
125
retries (int): for retries=n; n > 0, on failures of this task, the task will be retried at-least n number of times.
129
-
timeout (Optional[Union[datetime.timedelta, int]]): the max amount of time for which one execution of this task
130
-
should be executed for. The execution will be terminated if the runtime exceeds the given timeout
131
-
(approximately)
132
-
pod_template_name (Optional[str]): the name of existing PodTemplate resource in the cluster which will be used in this task.
126
+
timeout (Optional[Union[datetime.timedelta, int]]): The maximum duration for which one execution of this task should run. The execution will be terminated if the runtime exceeds this timeout.
127
+
pod_template_name (Optional[str]): The name of an existing PodTemplate resource in the cluster which will be used for this task.
128
+
generates_deck (bool): Indicates whether the task will generate a Deck URI.
129
+
is_eager (bool): Indicates whether the task should be treated as eager.
Copy file name to clipboardExpand all lines: pydoclint-errors-baseline.txt
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,6 @@ flytekit/core/base_sql_task.py
37
37
DOC301: Class `SQLTask`: __init__() should not have a docstring; please combine it with the docstring of the class
38
38
--------------------
39
39
flytekit/core/base_task.py
40
-
DOC601: Class `TaskMetadata`: Class docstring contains fewer class attributes than actual class attributes. (Please read https://jsh9.github.io/pydoclint/checking_class_attributes.html on how to correctly document class attributes.)
41
-
DOC603: Class `TaskMetadata`: Class docstring attributes are different from actual class attributes. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Attributes in the class definition but not in the docstring: [cache: bool, cache_ignore_input_vars: Tuple[str, ...], cache_serialize: bool, cache_version: str, deprecated: str, interruptible: Optional[bool], is_eager: bool, pod_template_name: Optional[str], retries: int, timeout: Optional[Union[datetime.timedelta, int]]]. (Please read https://jsh9.github.io/pydoclint/checking_class_attributes.html on how to correctly document class attributes.)
42
40
DOC301: Class `PythonTask`: __init__() should not have a docstring; please combine it with the docstring of the class
43
41
DOC001: Function/method `post_execute`: Potential formatting errors in docstring. Error message: Expected a colon in 'rval is returned value from call to execute'. (Note: DOC001 could trigger other unrelated violations under this function/method too. Please fix the docstring formatting first.)
44
42
DOC101: Method `PythonTask.post_execute`: Docstring contains fewer arguments than in function signature.
0 commit comments