ob-metaflow-stubs 2.11.4.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- metaflow-stubs/__init__.pyi +2753 -0
- metaflow-stubs/cards.pyi +266 -0
- metaflow-stubs/cli.pyi +137 -0
- metaflow-stubs/client/__init__.pyi +993 -0
- metaflow-stubs/client/core.pyi +1425 -0
- metaflow-stubs/client/filecache.pyi +87 -0
- metaflow-stubs/events.pyi +107 -0
- metaflow-stubs/exception.pyi +98 -0
- metaflow-stubs/flowspec.pyi +297 -0
- metaflow-stubs/generated_for.txt +1 -0
- metaflow-stubs/includefile.pyi +524 -0
- metaflow-stubs/metadata/metadata.pyi +377 -0
- metaflow-stubs/metadata/util.pyi +18 -0
- metaflow-stubs/metaflow_config.pyi +263 -0
- metaflow-stubs/metaflow_current.pyi +327 -0
- metaflow-stubs/mflog/mflog.pyi +22 -0
- metaflow-stubs/multicore_utils.pyi +62 -0
- metaflow-stubs/parameters.pyi +114 -0
- metaflow-stubs/plugins/__init__.pyi +209 -0
- metaflow-stubs/plugins/airflow/__init__.pyi +9 -0
- metaflow-stubs/plugins/airflow/airflow.pyi +179 -0
- metaflow-stubs/plugins/airflow/airflow_cli.pyi +90 -0
- metaflow-stubs/plugins/airflow/airflow_decorator.pyi +50 -0
- metaflow-stubs/plugins/airflow/airflow_utils.pyi +137 -0
- metaflow-stubs/plugins/airflow/exception.pyi +27 -0
- metaflow-stubs/plugins/airflow/sensors/__init__.pyi +26 -0
- metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +60 -0
- metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +54 -0
- metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +50 -0
- metaflow-stubs/plugins/argo/__init__.pyi +9 -0
- metaflow-stubs/plugins/argo/argo_client.pyi +77 -0
- metaflow-stubs/plugins/argo/argo_events.pyi +79 -0
- metaflow-stubs/plugins/argo/argo_workflows.pyi +604 -0
- metaflow-stubs/plugins/argo/argo_workflows_cli.pyi +180 -0
- metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +169 -0
- metaflow-stubs/plugins/aws/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/aws_client.pyi +22 -0
- metaflow-stubs/plugins/aws/aws_utils.pyi +93 -0
- metaflow-stubs/plugins/aws/batch/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/batch/batch.pyi +120 -0
- metaflow-stubs/plugins/aws/batch/batch_cli.pyi +42 -0
- metaflow-stubs/plugins/aws/batch/batch_client.pyi +159 -0
- metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +145 -0
- metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +73 -0
- metaflow-stubs/plugins/aws/step_functions/__init__.pyi +9 -0
- metaflow-stubs/plugins/aws/step_functions/dynamo_db_client.pyi +22 -0
- metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +27 -0
- metaflow-stubs/plugins/aws/step_functions/production_token.pyi +18 -0
- metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +17 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +220 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions_cli.pyi +139 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +36 -0
- metaflow-stubs/plugins/aws/step_functions/step_functions_decorator.pyi +49 -0
- metaflow-stubs/plugins/azure/__init__.pyi +9 -0
- metaflow-stubs/plugins/azure/azure_credential.pyi +28 -0
- metaflow-stubs/plugins/azure/azure_exceptions.pyi +28 -0
- metaflow-stubs/plugins/azure/azure_utils.pyi +76 -0
- metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +52 -0
- metaflow-stubs/plugins/azure/includefile_support.pyi +63 -0
- metaflow-stubs/plugins/cards/__init__.pyi +9 -0
- metaflow-stubs/plugins/cards/card_cli.pyi +557 -0
- metaflow-stubs/plugins/cards/card_client.pyi +178 -0
- metaflow-stubs/plugins/cards/card_creator.pyi +26 -0
- metaflow-stubs/plugins/cards/card_datastore.pyi +111 -0
- metaflow-stubs/plugins/cards/card_decorator.pyi +133 -0
- metaflow-stubs/plugins/cards/card_modules/__init__.pyi +67 -0
- metaflow-stubs/plugins/cards/card_modules/basic.pyi +263 -0
- metaflow-stubs/plugins/cards/card_modules/card.pyi +62 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/__init__.pyi +78 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/main.pyi +77 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/metadata.pyi +11 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/renderer.pyi +114 -0
- metaflow-stubs/plugins/cards/card_modules/chevron/tokenizer.pyi +75 -0
- metaflow-stubs/plugins/cards/card_modules/components.pyi +251 -0
- metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +45 -0
- metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +24 -0
- metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +155 -0
- metaflow-stubs/plugins/cards/card_resolver.pyi +60 -0
- metaflow-stubs/plugins/cards/component_serializer.pyi +227 -0
- metaflow-stubs/plugins/cards/exception.pyi +71 -0
- metaflow-stubs/plugins/catch_decorator.pyi +58 -0
- metaflow-stubs/plugins/datatools/__init__.pyi +339 -0
- metaflow-stubs/plugins/datatools/local.pyi +82 -0
- metaflow-stubs/plugins/datatools/s3/__init__.pyi +589 -0
- metaflow-stubs/plugins/datatools/s3/s3.pyi +875 -0
- metaflow-stubs/plugins/datatools/s3/s3tail.pyi +34 -0
- metaflow-stubs/plugins/datatools/s3/s3util.pyi +45 -0
- metaflow-stubs/plugins/debug_logger.pyi +25 -0
- metaflow-stubs/plugins/debug_monitor.pyi +25 -0
- metaflow-stubs/plugins/environment_decorator.pyi +17 -0
- metaflow-stubs/plugins/events_decorator.pyi +34 -0
- metaflow-stubs/plugins/frameworks/__init__.pyi +9 -0
- metaflow-stubs/plugins/frameworks/pytorch.pyi +42 -0
- metaflow-stubs/plugins/gcp/__init__.pyi +9 -0
- metaflow-stubs/plugins/gcp/gs_exceptions.pyi +22 -0
- metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +26 -0
- metaflow-stubs/plugins/gcp/gs_utils.pyi +38 -0
- metaflow-stubs/plugins/gcp/includefile_support.pyi +63 -0
- metaflow-stubs/plugins/kubernetes/__init__.pyi +9 -0
- metaflow-stubs/plugins/kubernetes/kubernetes.pyi +127 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_cli.pyi +73 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +62 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +165 -0
- metaflow-stubs/plugins/kubernetes/kubernetes_job.pyi +100 -0
- metaflow-stubs/plugins/package_cli.pyi +9 -0
- metaflow-stubs/plugins/parallel_decorator.pyi +34 -0
- metaflow-stubs/plugins/project_decorator.pyi +36 -0
- metaflow-stubs/plugins/pypi/__init__.pyi +18 -0
- metaflow-stubs/plugins/pypi/conda_decorator.pyi +59 -0
- metaflow-stubs/plugins/pypi/conda_environment.pyi +86 -0
- metaflow-stubs/plugins/pypi/pypi_decorator.pyi +22 -0
- metaflow-stubs/plugins/pypi/pypi_environment.pyi +50 -0
- metaflow-stubs/plugins/pypi/utils.pyi +28 -0
- metaflow-stubs/plugins/resources_decorator.pyi +15 -0
- metaflow-stubs/plugins/retry_decorator.pyi +28 -0
- metaflow-stubs/plugins/secrets/__init__.pyi +21 -0
- metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +30 -0
- metaflow-stubs/plugins/secrets/secrets_decorator.pyi +75 -0
- metaflow-stubs/plugins/storage_executor.pyi +33 -0
- metaflow-stubs/plugins/tag_cli.pyi +370 -0
- metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +54 -0
- metaflow-stubs/plugins/timeout_decorator.pyi +39 -0
- metaflow-stubs/procpoll.pyi +51 -0
- metaflow-stubs/py.typed +0 -0
- metaflow-stubs/pylint_wrapper.pyi +31 -0
- metaflow-stubs/tagging_util.pyi +52 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/METADATA +22 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/RECORD +131 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/WHEEL +6 -0
- ob_metaflow_stubs-2.11.4.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,377 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.998314 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import typing
|
10
|
+
if typing.TYPE_CHECKING:
|
11
|
+
import metaflow.metadata.metadata
|
12
|
+
import metaflow.exception
|
13
|
+
|
14
|
+
class MetaflowInternalError(metaflow.exception.MetaflowException, metaclass=type):
|
15
|
+
...
|
16
|
+
|
17
|
+
class MetaflowTaggingError(metaflow.exception.MetaflowException, metaclass=type):
|
18
|
+
...
|
19
|
+
|
20
|
+
def validate_tag(tag):
|
21
|
+
"""
|
22
|
+
- Tag must be either of bytes-type or unicode-type.
|
23
|
+
- If tag is of bytes-type, it must be UTF-8 decodable
|
24
|
+
- If tag is of unicode-type, it must be UTF-8 encodable
|
25
|
+
- Tag may not be empty string.
|
26
|
+
- Tag cannot be too long (500 chars)
|
27
|
+
"""
|
28
|
+
...
|
29
|
+
|
30
|
+
class DataArtifact(tuple, metaclass=type):
|
31
|
+
@staticmethod
|
32
|
+
def __new__(_cls, name, ds_type, ds_root, url, type, sha):
|
33
|
+
"""
|
34
|
+
Create new instance of DataArtifact(name, ds_type, ds_root, url, type, sha)
|
35
|
+
"""
|
36
|
+
...
|
37
|
+
def __repr__(self):
|
38
|
+
"""
|
39
|
+
Return a nicely formatted representation string
|
40
|
+
"""
|
41
|
+
...
|
42
|
+
def __getnewargs__(self):
|
43
|
+
"""
|
44
|
+
Return self as a plain tuple. Used by copy and pickle.
|
45
|
+
"""
|
46
|
+
...
|
47
|
+
...
|
48
|
+
|
49
|
+
class MetaDatum(tuple, metaclass=type):
|
50
|
+
@staticmethod
|
51
|
+
def __new__(_cls, field, value, type, tags):
|
52
|
+
"""
|
53
|
+
Create new instance of MetaDatum(field, value, type, tags)
|
54
|
+
"""
|
55
|
+
...
|
56
|
+
def __repr__(self):
|
57
|
+
"""
|
58
|
+
Return a nicely formatted representation string
|
59
|
+
"""
|
60
|
+
...
|
61
|
+
def __getnewargs__(self):
|
62
|
+
"""
|
63
|
+
Return self as a plain tuple. Used by copy and pickle.
|
64
|
+
"""
|
65
|
+
...
|
66
|
+
...
|
67
|
+
|
68
|
+
class MetadataProviderMeta(type, metaclass=type):
|
69
|
+
@staticmethod
|
70
|
+
def __new__(metaname, classname, bases, attrs):
|
71
|
+
...
|
72
|
+
def __init__(classobject, classname, bases, attrs):
|
73
|
+
...
|
74
|
+
@property
|
75
|
+
def INFO(classobject):
|
76
|
+
...
|
77
|
+
@INFO.setter
|
78
|
+
def INFO(classobject, val):
|
79
|
+
...
|
80
|
+
...
|
81
|
+
|
82
|
+
def with_metaclass(mcls):
|
83
|
+
...
|
84
|
+
|
85
|
+
class ObjectOrder(object, metaclass=type):
|
86
|
+
@staticmethod
|
87
|
+
def order_to_type(order):
|
88
|
+
...
|
89
|
+
@staticmethod
|
90
|
+
def type_to_order(obj_type):
|
91
|
+
...
|
92
|
+
...
|
93
|
+
|
94
|
+
class MetadataProvider(object, metaclass=MetadataProviderMeta):
|
95
|
+
@classmethod
|
96
|
+
def compute_info(cls, val):
|
97
|
+
"""
|
98
|
+
Compute the new information for this provider
|
99
|
+
|
100
|
+
The computed value should be returned and will then be accessible directly as cls.INFO.
|
101
|
+
This information will be printed by the client when describing this metadata provider
|
102
|
+
|
103
|
+
Parameters
|
104
|
+
----------
|
105
|
+
val : str
|
106
|
+
Provider specific information used in computing the new information. For example, this
|
107
|
+
can be a path.
|
108
|
+
|
109
|
+
Returns
|
110
|
+
-------
|
111
|
+
str :
|
112
|
+
Value to be set to INFO
|
113
|
+
"""
|
114
|
+
...
|
115
|
+
@classmethod
|
116
|
+
def default_info(cls):
|
117
|
+
"""
|
118
|
+
Returns the default information for this provider
|
119
|
+
|
120
|
+
This should compute and return the default value for the information regarding this provider.
|
121
|
+
For example, this can compute where the metadata is stored
|
122
|
+
|
123
|
+
Returns
|
124
|
+
-------
|
125
|
+
str
|
126
|
+
Value to be set by default in INFO
|
127
|
+
"""
|
128
|
+
...
|
129
|
+
def version(self):
|
130
|
+
"""
|
131
|
+
Returns the version of this provider
|
132
|
+
|
133
|
+
Returns
|
134
|
+
-------
|
135
|
+
str
|
136
|
+
Version of the provider
|
137
|
+
"""
|
138
|
+
...
|
139
|
+
def new_run_id(self, tags = None, sys_tags = None):
|
140
|
+
"""
|
141
|
+
Creates an ID and registers this new run.
|
142
|
+
|
143
|
+
The run ID will be unique within a given flow.
|
144
|
+
|
145
|
+
Parameters
|
146
|
+
----------
|
147
|
+
tags : list, optional
|
148
|
+
Tags to apply to this particular run, by default None
|
149
|
+
sys_tags : list, optional
|
150
|
+
System tags to apply to this particular run, by default None
|
151
|
+
|
152
|
+
Returns
|
153
|
+
-------
|
154
|
+
int
|
155
|
+
Run ID for the run
|
156
|
+
"""
|
157
|
+
...
|
158
|
+
def register_run_id(self, run_id, tags = None, sys_tags = None):
|
159
|
+
"""
|
160
|
+
No-op operation in this implementation.
|
161
|
+
|
162
|
+
Parameters
|
163
|
+
----------
|
164
|
+
run_id : int
|
165
|
+
Run ID for this run
|
166
|
+
tags : list, optional
|
167
|
+
Tags to apply to this particular run, by default None
|
168
|
+
sys_tags : list, optional
|
169
|
+
System tags to apply to this particular run, by default None
|
170
|
+
Returns
|
171
|
+
-------
|
172
|
+
bool
|
173
|
+
True if a new run was registered; False if it already existed
|
174
|
+
"""
|
175
|
+
...
|
176
|
+
def new_task_id(self, run_id, step_name, tags = None, sys_tags = None):
|
177
|
+
"""
|
178
|
+
Creates an ID and registers this new task.
|
179
|
+
|
180
|
+
The task ID will be unique within a flow, run and step
|
181
|
+
|
182
|
+
Parameters
|
183
|
+
----------
|
184
|
+
run_id : int
|
185
|
+
ID of the run
|
186
|
+
step_name : string
|
187
|
+
Name of the step
|
188
|
+
tags : list, optional
|
189
|
+
Tags to apply to this particular task, by default None
|
190
|
+
sys_tags : list, optional
|
191
|
+
System tags to apply to this particular task, by default None
|
192
|
+
|
193
|
+
Returns
|
194
|
+
-------
|
195
|
+
int
|
196
|
+
Task ID for the task
|
197
|
+
"""
|
198
|
+
...
|
199
|
+
def register_task_id(self, run_id, step_name, task_id, attempt = 0, tags = None, sys_tags = None):
|
200
|
+
"""
|
201
|
+
No-op operation in this implementation.
|
202
|
+
|
203
|
+
Parameters
|
204
|
+
----------
|
205
|
+
run_id : int or convertible to int
|
206
|
+
Run ID for this run
|
207
|
+
step_name : string
|
208
|
+
Name of the step
|
209
|
+
task_id : int
|
210
|
+
Task ID
|
211
|
+
tags : list, optional
|
212
|
+
Tags to apply to this particular run, by default []
|
213
|
+
sys_tags : list, optional
|
214
|
+
System tags to apply to this particular run, by default []
|
215
|
+
Returns
|
216
|
+
-------
|
217
|
+
bool
|
218
|
+
True if a new run was registered; False if it already existed
|
219
|
+
"""
|
220
|
+
...
|
221
|
+
def get_runtime_environment(self, runtime_name):
|
222
|
+
"""
|
223
|
+
Returns a dictionary of environment variables to be set
|
224
|
+
|
225
|
+
Parameters
|
226
|
+
----------
|
227
|
+
runtime_name : string
|
228
|
+
Name of the runtime for which to get the environment
|
229
|
+
|
230
|
+
Returns
|
231
|
+
-------
|
232
|
+
dict[string] -> string
|
233
|
+
Environment variables from this metadata provider
|
234
|
+
"""
|
235
|
+
...
|
236
|
+
def register_data_artifacts(self, run_id, step_name, task_id, attempt_id, artifacts):
|
237
|
+
"""
|
238
|
+
Registers the fact that the data-artifacts are associated with
|
239
|
+
the particular task.
|
240
|
+
|
241
|
+
Artifacts produced by a given task can be associated with the
|
242
|
+
task using this call
|
243
|
+
|
244
|
+
Parameters
|
245
|
+
----------
|
246
|
+
run_id : int
|
247
|
+
Run ID for the task
|
248
|
+
step_name : string
|
249
|
+
Step name for the task
|
250
|
+
task_id : int
|
251
|
+
Task ID for the task
|
252
|
+
attempt_id : int
|
253
|
+
Attempt for the task
|
254
|
+
artifacts : List of DataArtifact
|
255
|
+
Artifacts associated with this task
|
256
|
+
"""
|
257
|
+
...
|
258
|
+
def register_metadata(self, run_id, step_name, task_id, metadata):
|
259
|
+
"""
|
260
|
+
Registers metadata with a task.
|
261
|
+
|
262
|
+
Note that the same metadata can be registered multiple times for the same task (for example
|
263
|
+
by multiple attempts). Internally, the timestamp of when the registration call is made is
|
264
|
+
also recorded allowing the user to determine the latest value of the metadata.
|
265
|
+
|
266
|
+
Parameters
|
267
|
+
----------
|
268
|
+
run_id : int
|
269
|
+
Run ID for the task
|
270
|
+
step_name : string
|
271
|
+
Step name for the task
|
272
|
+
task_id : int
|
273
|
+
Task ID for the task
|
274
|
+
metadata : List of MetaDatum
|
275
|
+
Metadata associated with this task
|
276
|
+
"""
|
277
|
+
...
|
278
|
+
def start_task_heartbeat(self, flow_id, run_id, step_name, task_id):
|
279
|
+
...
|
280
|
+
def start_run_heartbeat(self, flow_id, run_id):
|
281
|
+
...
|
282
|
+
def stop_heartbeat(self):
|
283
|
+
...
|
284
|
+
def add_sticky_tags(self, tags = None, sys_tags = None):
|
285
|
+
"""
|
286
|
+
Adds tags to be added to every run and task
|
287
|
+
|
288
|
+
Tags can be added to record information about a run/task. Such tags can be specified on a
|
289
|
+
per run or task basis using the new_run_id/register_run_id or new_task_id/register_task_id
|
290
|
+
functions but can also be set globally using this function. Tags added here will be
|
291
|
+
added to every run/task created after this call is made.
|
292
|
+
|
293
|
+
Parameters
|
294
|
+
----------
|
295
|
+
tags : list, optional
|
296
|
+
Tags to add to every run/task, by default None
|
297
|
+
sys_tags : list, optional
|
298
|
+
System tags to add to every run/task, by default None
|
299
|
+
"""
|
300
|
+
...
|
301
|
+
@classmethod
|
302
|
+
def get_object(cls, obj_type, sub_type, filters, attempt, *args):
|
303
|
+
"""
|
304
|
+
Returns the requested object depending on obj_type and sub_type
|
305
|
+
|
306
|
+
obj_type can be one of 'root', 'flow', 'run', 'step', 'task',
|
307
|
+
or 'artifact'
|
308
|
+
|
309
|
+
sub_type describes the aggregation required and can be either:
|
310
|
+
'metadata', 'self' or any of obj_type provided that it is slotted below
|
311
|
+
the object itself. For example, if obj_type is 'flow', you can
|
312
|
+
specify 'run' to get all the runs in that flow.
|
313
|
+
A few special rules:
|
314
|
+
- 'metadata' is only allowed for obj_type 'task'
|
315
|
+
- For obj_type 'artifact', only 'self' is allowed
|
316
|
+
A few examples:
|
317
|
+
- To get a list of all flows:
|
318
|
+
- set obj_type to 'root' and sub_type to 'flow'
|
319
|
+
- To get a list of all tasks:
|
320
|
+
- set obj_type to 'root' and sub_type to 'task'
|
321
|
+
- To get a list of all artifacts in a task:
|
322
|
+
- set obj_type to 'task' and sub_type to 'artifact'
|
323
|
+
- To get information about a specific flow:
|
324
|
+
- set obj_type to 'flow' and sub_type to 'self'
|
325
|
+
|
326
|
+
Parameters
|
327
|
+
----------
|
328
|
+
obj_type : string
|
329
|
+
One of 'root', 'flow', 'run', 'step', 'task', 'artifact' or 'metadata'
|
330
|
+
sub_type : string
|
331
|
+
Same as obj_type with the addition of 'self'
|
332
|
+
filters : dict
|
333
|
+
Dictionary with keys 'any_tags', 'tags' and 'system_tags'. If specified
|
334
|
+
will return only objects that have the specified tags present. Filters
|
335
|
+
are ANDed together so all tags must be present for the object to be returned.
|
336
|
+
attempt : int or None
|
337
|
+
If None, for metadata and artifacts:
|
338
|
+
- returns information about the latest attempt for artifacts
|
339
|
+
- returns all metadata across all attempts
|
340
|
+
Otherwise, returns information about metadata and artifacts for that
|
341
|
+
attempt only.
|
342
|
+
NOTE: For older versions of Metaflow (pre 2.4.0), the attempt for
|
343
|
+
metadata is not known; in that case, all metadata is returned (as
|
344
|
+
if None was passed in).
|
345
|
+
|
346
|
+
Return
|
347
|
+
------
|
348
|
+
object or list :
|
349
|
+
Depending on the call, the type of object return varies
|
350
|
+
"""
|
351
|
+
...
|
352
|
+
@classmethod
|
353
|
+
def mutate_user_tags_for_run(cls, flow_id, run_id, tags_to_remove = None, tags_to_add = None):
|
354
|
+
"""
|
355
|
+
Mutate the set of user tags for a run.
|
356
|
+
|
357
|
+
Removals logically get applied after additions. Operations occur as a batch atomically.
|
358
|
+
Parameters
|
359
|
+
----------
|
360
|
+
flow_id : str
|
361
|
+
Flow id, that the run belongs to.
|
362
|
+
run_id: str
|
363
|
+
Run id, together with flow_id, that identifies the specific Run whose tags to mutate
|
364
|
+
tags_to_remove: iterable over str
|
365
|
+
Iterable over tags to remove
|
366
|
+
tags_to_add: iterable over str
|
367
|
+
Iterable over tags to add
|
368
|
+
|
369
|
+
Return
|
370
|
+
------
|
371
|
+
Run tags after mutation operations
|
372
|
+
"""
|
373
|
+
...
|
374
|
+
def __init__(self, environment, flow, event_logger, monitor):
|
375
|
+
...
|
376
|
+
...
|
377
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.998631 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
|
10
|
+
def copy_tree(src, dst, update = False):
|
11
|
+
...
|
12
|
+
|
13
|
+
def sync_local_metadata_to_datastore(metadata_local_dir, task_ds):
|
14
|
+
...
|
15
|
+
|
16
|
+
def sync_local_metadata_from_datastore(metadata_local_dir, task_ds):
|
17
|
+
...
|
18
|
+
|
@@ -0,0 +1,263 @@
|
|
1
|
+
##################################################################################
|
2
|
+
# Auto-generated Metaflow stub file #
|
3
|
+
# MF version: 2.11.4.1 #
|
4
|
+
# Generated on 2024-02-28T05:30:43.890695 #
|
5
|
+
##################################################################################
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
|
10
|
+
class MetaflowException(Exception, metaclass=type):
|
11
|
+
def __init__(self, msg = "", lineno = None):
|
12
|
+
...
|
13
|
+
def __str__(self):
|
14
|
+
...
|
15
|
+
...
|
16
|
+
|
17
|
+
DEFAULT_DATASTORE: str
|
18
|
+
|
19
|
+
DEFAULT_ENVIRONMENT: str
|
20
|
+
|
21
|
+
DEFAULT_EVENT_LOGGER: str
|
22
|
+
|
23
|
+
DEFAULT_METADATA: str
|
24
|
+
|
25
|
+
DEFAULT_MONITOR: str
|
26
|
+
|
27
|
+
DEFAULT_PACKAGE_SUFFIXES: str
|
28
|
+
|
29
|
+
DEFAULT_AWS_CLIENT_PROVIDER: str
|
30
|
+
|
31
|
+
DEFAULT_GCP_CLIENT_PROVIDER: str
|
32
|
+
|
33
|
+
DEFAULT_SECRETS_BACKEND_TYPE: None
|
34
|
+
|
35
|
+
DEFAULT_SECRETS_ROLE: None
|
36
|
+
|
37
|
+
USER: None
|
38
|
+
|
39
|
+
DATASTORE_LOCAL_DIR: str
|
40
|
+
|
41
|
+
DATASTORE_SYSROOT_LOCAL: None
|
42
|
+
|
43
|
+
DATASTORE_SYSROOT_S3: None
|
44
|
+
|
45
|
+
DATASTORE_SYSROOT_AZURE: None
|
46
|
+
|
47
|
+
DATASTORE_SYSROOT_GS: None
|
48
|
+
|
49
|
+
CLIENT_CACHE_PATH: str
|
50
|
+
|
51
|
+
CLIENT_CACHE_MAX_SIZE: int
|
52
|
+
|
53
|
+
CLIENT_CACHE_MAX_FLOWDATASTORE_COUNT: int
|
54
|
+
|
55
|
+
CLIENT_CACHE_MAX_TASKDATASTORE_COUNT: int
|
56
|
+
|
57
|
+
S3_ENDPOINT_URL: None
|
58
|
+
|
59
|
+
S3_VERIFY_CERTIFICATE: None
|
60
|
+
|
61
|
+
S3_SERVER_SIDE_ENCRYPTION: None
|
62
|
+
|
63
|
+
S3_RETRY_COUNT: int
|
64
|
+
|
65
|
+
S3_TRANSIENT_RETRY_COUNT: int
|
66
|
+
|
67
|
+
RETRY_WARNING_THRESHOLD: int
|
68
|
+
|
69
|
+
DATATOOLS_SUFFIX: str
|
70
|
+
|
71
|
+
DATATOOLS_S3ROOT: None
|
72
|
+
|
73
|
+
TEMPDIR: str
|
74
|
+
|
75
|
+
DATATOOLS_CLIENT_PARAMS: dict
|
76
|
+
|
77
|
+
DATATOOLS_SESSION_VARS: dict
|
78
|
+
|
79
|
+
DATATOOLS_AZUREROOT: None
|
80
|
+
|
81
|
+
DATATOOLS_GSROOT: None
|
82
|
+
|
83
|
+
DATATOOLS_LOCALROOT: None
|
84
|
+
|
85
|
+
AWS_SECRETS_MANAGER_DEFAULT_REGION: None
|
86
|
+
|
87
|
+
ARTIFACT_LOCALROOT: str
|
88
|
+
|
89
|
+
CARD_SUFFIX: str
|
90
|
+
|
91
|
+
CARD_LOCALROOT: None
|
92
|
+
|
93
|
+
CARD_S3ROOT: None
|
94
|
+
|
95
|
+
CARD_AZUREROOT: None
|
96
|
+
|
97
|
+
CARD_GSROOT: None
|
98
|
+
|
99
|
+
CARD_NO_WARNING: bool
|
100
|
+
|
101
|
+
SKIP_CARD_DUALWRITE: bool
|
102
|
+
|
103
|
+
RUNTIME_CARD_RENDER_INTERVAL: int
|
104
|
+
|
105
|
+
AZURE_STORAGE_BLOB_SERVICE_ENDPOINT: None
|
106
|
+
|
107
|
+
AZURE_STORAGE_WORKLOAD_TYPE: str
|
108
|
+
|
109
|
+
GS_STORAGE_WORKLOAD_TYPE: str
|
110
|
+
|
111
|
+
SERVICE_URL: None
|
112
|
+
|
113
|
+
SERVICE_RETRY_COUNT: int
|
114
|
+
|
115
|
+
SERVICE_AUTH_KEY: None
|
116
|
+
|
117
|
+
SERVICE_HEADERS: dict
|
118
|
+
|
119
|
+
SERVICE_VERSION_CHECK: bool
|
120
|
+
|
121
|
+
DEFAULT_CONTAINER_IMAGE: None
|
122
|
+
|
123
|
+
DEFAULT_CONTAINER_REGISTRY: None
|
124
|
+
|
125
|
+
INCLUDE_FOREACH_STACK: bool
|
126
|
+
|
127
|
+
MAXIMUM_FOREACH_VALUE_CHARS: int
|
128
|
+
|
129
|
+
UI_URL: None
|
130
|
+
|
131
|
+
CONTACT_INFO: dict
|
132
|
+
|
133
|
+
ECS_S3_ACCESS_IAM_ROLE: None
|
134
|
+
|
135
|
+
ECS_FARGATE_EXECUTION_ROLE: None
|
136
|
+
|
137
|
+
BATCH_JOB_QUEUE: None
|
138
|
+
|
139
|
+
BATCH_CONTAINER_IMAGE: None
|
140
|
+
|
141
|
+
BATCH_CONTAINER_REGISTRY: None
|
142
|
+
|
143
|
+
SERVICE_INTERNAL_URL: None
|
144
|
+
|
145
|
+
BATCH_EMIT_TAGS: bool
|
146
|
+
|
147
|
+
SFN_IAM_ROLE: None
|
148
|
+
|
149
|
+
SFN_DYNAMO_DB_TABLE: None
|
150
|
+
|
151
|
+
EVENTS_SFN_ACCESS_IAM_ROLE: None
|
152
|
+
|
153
|
+
SFN_STATE_MACHINE_PREFIX: None
|
154
|
+
|
155
|
+
SFN_EXECUTION_LOG_GROUP_ARN: None
|
156
|
+
|
157
|
+
SFN_S3_DISTRIBUTED_MAP_OUTPUT_PATH: None
|
158
|
+
|
159
|
+
KUBERNETES_NAMESPACE: str
|
160
|
+
|
161
|
+
KUBERNETES_SERVICE_ACCOUNT: None
|
162
|
+
|
163
|
+
KUBERNETES_NODE_SELECTOR: str
|
164
|
+
|
165
|
+
KUBERNETES_TOLERATIONS: str
|
166
|
+
|
167
|
+
KUBERNETES_PERSISTENT_VOLUME_CLAIMS: str
|
168
|
+
|
169
|
+
KUBERNETES_SECRETS: str
|
170
|
+
|
171
|
+
KUBERNETES_LABELS: str
|
172
|
+
|
173
|
+
KUBERNETES_GPU_VENDOR: str
|
174
|
+
|
175
|
+
KUBERNETES_CONTAINER_IMAGE: None
|
176
|
+
|
177
|
+
KUBERNETES_IMAGE_PULL_POLICY: None
|
178
|
+
|
179
|
+
KUBERNETES_CONTAINER_REGISTRY: None
|
180
|
+
|
181
|
+
KUBERNETES_FETCH_EC2_METADATA: bool
|
182
|
+
|
183
|
+
KUBERNETES_PORT: None
|
184
|
+
|
185
|
+
KUBERNETES_SHARED_MEMORY: None
|
186
|
+
|
187
|
+
ARGO_WORKFLOWS_KUBERNETES_SECRETS: str
|
188
|
+
|
189
|
+
ARGO_WORKFLOWS_ENV_VARS_TO_SKIP: str
|
190
|
+
|
191
|
+
ARGO_EVENTS_SERVICE_ACCOUNT: None
|
192
|
+
|
193
|
+
ARGO_EVENTS_EVENT_BUS: str
|
194
|
+
|
195
|
+
ARGO_EVENTS_EVENT_SOURCE: None
|
196
|
+
|
197
|
+
ARGO_EVENTS_EVENT: None
|
198
|
+
|
199
|
+
ARGO_EVENTS_WEBHOOK_URL: None
|
200
|
+
|
201
|
+
ARGO_EVENTS_INTERNAL_WEBHOOK_URL: None
|
202
|
+
|
203
|
+
ARGO_EVENTS_WEBHOOK_AUTH: str
|
204
|
+
|
205
|
+
ARGO_WORKFLOWS_UI_URL: None
|
206
|
+
|
207
|
+
AIRFLOW_KUBERNETES_STARTUP_TIMEOUT_SECONDS: int
|
208
|
+
|
209
|
+
AIRFLOW_KUBERNETES_CONN_ID: None
|
210
|
+
|
211
|
+
AIRFLOW_KUBERNETES_KUBECONFIG_FILE: None
|
212
|
+
|
213
|
+
AIRFLOW_KUBERNETES_KUBECONFIG_CONTEXT: None
|
214
|
+
|
215
|
+
CONDA_PACKAGE_S3ROOT: None
|
216
|
+
|
217
|
+
CONDA_PACKAGE_AZUREROOT: None
|
218
|
+
|
219
|
+
CONDA_PACKAGE_GSROOT: None
|
220
|
+
|
221
|
+
CONDA_DEPENDENCY_RESOLVER: str
|
222
|
+
|
223
|
+
DEBUG_OPTIONS: list
|
224
|
+
|
225
|
+
DEBUG_SUBCOMMAND: bool
|
226
|
+
|
227
|
+
DEBUG_SIDECAR: bool
|
228
|
+
|
229
|
+
DEBUG_S3CLIENT: bool
|
230
|
+
|
231
|
+
DEBUG_TRACING: bool
|
232
|
+
|
233
|
+
DEBUG_STUBGEN: bool
|
234
|
+
|
235
|
+
AWS_SANDBOX_ENABLED: bool
|
236
|
+
|
237
|
+
AWS_SANDBOX_STS_ENDPOINT_URL: None
|
238
|
+
|
239
|
+
AWS_SANDBOX_API_KEY: None
|
240
|
+
|
241
|
+
AWS_SANDBOX_INTERNAL_SERVICE_URL: None
|
242
|
+
|
243
|
+
AWS_SANDBOX_REGION: None
|
244
|
+
|
245
|
+
KUBERNETES_SANDBOX_INIT_SCRIPT: None
|
246
|
+
|
247
|
+
OTEL_ENDPOINT: None
|
248
|
+
|
249
|
+
ZIPKIN_ENDPOINT: None
|
250
|
+
|
251
|
+
CONSOLE_TRACE_ENABLED: bool
|
252
|
+
|
253
|
+
DISABLE_TRACING: bool
|
254
|
+
|
255
|
+
MAX_MEMORY_PER_TASK: None
|
256
|
+
|
257
|
+
MAX_CPU_PER_TASK: None
|
258
|
+
|
259
|
+
MAX_ATTEMPTS: int
|
260
|
+
|
261
|
+
def get_pinned_conda_libs(python_version, datastore_type):
|
262
|
+
...
|
263
|
+
|