Frank Shen
02/04/2023, 12:45 AMfrom sklearn.preprocessing import OneHotEncoder
@task
def transform(
encoder: Optional[OneHotEncoder] = None, ...
)
The workflow will do:
return transform(
encoder=None, ...
Frank Shen
02/04/2023, 12:50 AMflytekit/core/type_engine.py", line 1060, in to_literal
raise TypeError("Ambiguous choice of variant for union type")
...
flytekit/core/promise.py", line 937, in create_and_link_node
raise AssertionError(f"Failed to Bind variable {k} for function {entity.name}.") from e
AssertionError: Failed to Bind variable encoder for function dai_mle_models.onehotenc.simple_onehotenc.transform.
Frank Shen
02/04/2023, 12:53 AMdef estimate(test_data: Optional[pd.DataFrame] = None, ...
Sam Eckert
02/04/2023, 7:36 PM0
as None.
@workflow
def _impl(
delta: int,
) -> Set[str]:
return (
conditional("terminal_case")
.if_((delta != -1) & (delta <= 10))
.then(end())
.else_()
.then(
iterate()
)
)
def cluster_distributed() -> Set[str]:
_impl(delta=0)
Outputs an error comparing NoneType <= 10Ketan (kumare3)
Jay Phan
02/06/2023, 2:50 AMFile "/Library/Frameworks/Python.framework/Versions/3.11/bin/pyflyte", line 5, in <module>
from flytekit.clis.sdk_in_container.pyflyte import main
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/flytekit/__init__.py", line 165, in <module>
from flytekit.core.base_sql_task import SQLTask
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/flytekit/core/base_sql_task.py", line 4, in <module>
from flytekit.core.base_task import PythonTask, TaskMetadata
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/flytekit/core/base_task.py", line 26, in <module>
from flytekit.configuration import SerializationSettings
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/flytekit/configuration/__init__.py", line 473, in <module>
@dataclass(init=True, repr=True, eq=True, frozen=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1210, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'flytekit.configuration.S3Config'> for field s3 is not allowed: use default_factory
Leiqing
02/06/2023, 7:41 AMfailed to create workflow in propeller json: error calling MarshalJSON for type *v1alpha1.Inputs: Marshal called with nil
Is this expected?Aswanth Krishnan
02/06/2023, 7:51 AMewam
02/06/2023, 8:01 AMtrain
and eval
tasks and run them as long es condition is met in @dynamic
@task
def train():
...
@task
def eval():
...
@dynamic
def job():
running = True
while running:
train_result = train()
score = eval()
if score > 0.5:
running = False
Option B: One "giant" workflow without train
and eval
tasks:
def train():
...
def eval():
...
@workflow
def job():
running = True
while running:
train_result = train()
score = eval()
if score > 0.5:
running = False
Are there advantages of one vs. the other? Would it be problematic that in Option A the DAG might grow very big?ewam
02/06/2023, 8:40 AMsleep
(attached screenshot). But there is no example given, unfortunately.
Therefore, I'm asking here again: How would you use sleep
to trigger a task periodically inside a `@dynamic`workflow and how would the DAG look like in that case?Eli Bixby
02/06/2023, 12:48 PMMohd Shahid Khan Afridi
02/06/2023, 3:08 PMEduardo Matus
02/06/2023, 9:31 PMEduardo Matus
02/06/2023, 9:31 PMEduardo Matus
02/06/2023, 9:31 PMKetan (kumare3)
Andrew Korzhuev
02/07/2023, 12:59 PMGot error while scheduling rpc error: code = InvalidArgument desc = project [project-x] is not active
Bernhard Stadlbauer
02/07/2023, 1:17 PMWorkflow[<worfklow-id>] failed. RuntimeExecutionError: max number of system retry attempts [51/50] exhausted. Last known status message: Failed to check Catalog for previous results: DataCatalog failed to get dataset for ID resource_type:TASK name:"<task-id>" version:"<task-version>" : rpc error: code = InvalidArgument desc = missing project
This seems to come from here, but I’m not quite sure why project
would be empty hereHIMANSHU JOSHI
02/07/2023, 1:28 PMgrpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:172.25.0.46:443: Ssl handshake failed: SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:172.25.0.46:443: Ssl handshake failed: SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED {grpc_status:14, created_time:"2023-02-07T18:47:06.951145+05:30"}"
Any body has an idea what is the problem here?
P.s I have TLS disabled on ingress.Klaus Azesberger
02/07/2023, 1:39 PMVictor Gustavo da Silva Oliveira
02/07/2023, 1:42 PMVictor Gustavo da Silva Oliveira
02/07/2023, 1:44 PMGeoff Salmon
02/07/2023, 5:29 PMAnkit Goyal
02/07/2023, 7:19 PMfrom flytekit import workflow, LaunchPlan, task
from dataclasses import dataclass
from dataclasses_json import dataclass_json
@dataclass_json
@dataclass
class MyDataClass(object):
def __init__(self, a: int, b: str):
self.a = a
self.b = b
@task
def example_node(input: MyDataClass):
print(f'{input.a}')
@workflow
def my_dataclass_workflow(input: MyDataClass):
return example_node(input=input)
Should the UI be editable to provide input as json?Eduardo Matus
02/07/2023, 7:33 PMDevRel
02/07/2023, 10:05 PMYubo Wang
02/07/2023, 11:16 PMConditions are limited to certain binary and logical operators and can only be performed on primitive values.
Jimmy Du
02/08/2023, 1:33 AMflytectl demo start
? I would like to login to it to check out the metadata stored there during task/workflow registration.Ketan (kumare3)
Ketan (kumare3)