Jacob Wang
06/22/2023, 8:21 AMimport os
import pathlib
from flytekitplugins.papermill import NotebookTask
from flytekitplugins.awsbatch import AWSBatchConfig
config = AWSBatchConfig(
platformCapabilities="EC2",
)
backtest_wages = NotebookTask(
name="test-notebook",
notebook_path=os.path.join(
pathlib.Path(__file__).parent.parent.absolute(), "notebooks/test-notebook.ipynb"
),
render_deck=True,
task_config=config
)
but got an error:
logger.debug(f"Starting _dispatch_execute for {task_def.name}")
AttributeError: 'function' object has no attribute 'name'
Gerard Maas
06/22/2023, 8:31 AMRezwan Abir
06/22/2023, 1:13 PMRezwan Abir
06/22/2023, 1:13 PMBernhard Stadlbauer
06/22/2023, 2:49 PMcontainers with unready status: [fv6d6b4u4zgwuy-n10-0]|context deadline exceeded
- the task has not been retried (it would have three user retires set). Is this expected?Sam Eckert
06/22/2023, 4:30 PM1.6.2
backport for those of us stuck on Protobuf 3? Running into https://github.com/flyteorg/flytekit/pull/1657 on 1.2.13
Yicheng Lu
06/22/2023, 9:24 PMCannot GET /console
response when trying to access http://localhost:3000/console . Wondering If I can get some hints on this. Thank you in advance!Yubo Wang
06/22/2023, 10:20 PMmake compile
and ./bin/flyte start --config flyte_local.yaml
to develop flyte locally, how can I specify the pod security context to allow container to run as root?Brian O'Donovan
06/23/2023, 6:19 AMAlbert Wibowo
06/23/2023, 11:35 AMAlbert Wibowo
06/23/2023, 1:29 PMImportError: cannot import name 'lazy_module' from partially initialized module 'flytekit' (most likely due to a circular import)
Any idea on how to fix this? Thanks!Geert
06/24/2023, 3:25 PMRunning
with logs `Failed to put data from /home/user/model.pt to s3://my-s3-bucket/data/.../model.pt; Original exception: Could not connect to the endpoint URL: \"http://flyte-sandbox-minio.flyte:9000/my-s3-bucket?list-type=2&prefix=data...`:
@task()
def train_model() -> bool:
train() # model training, generates a .pt file in the container
return FlyteFile(path="/home/user/model.pt")
@workflow
def wf():
train_model = train_model()
return train_model
This, just taking another random file in the same container completes without issues:
return FlyteFile(path="/home/user/.profile")
When I exec
into the container, the <http://model.pt|model.pt>
file is there.盛毅
06/26/2023, 1:53 AMMelody Lui
06/26/2023, 4:08 AM盛毅
06/26/2023, 5:51 AM盛毅
06/26/2023, 5:52 AM盛毅
06/26/2023, 6:08 AMVictor Churikov
06/26/2023, 11:24 AMAriel Kaspit
06/26/2023, 1:03 PMpyflyte --image
but we’re getting this error (occasionally) - Failed to apply default image tag "{{.image.demo.fqn}}:{{.image.demo.version}}": couldn't parse image reference "{{.image.demo.fqn}}:{{.image.demo.version}}": invalid reference format
Does anyone have any idea why it happens?
TnxNandakumar Raghu
06/26/2023, 2:57 PMFailed with Unknown Exception <class 'AssertionError'> Reason: Cannot pass output from task n3 that produces no outputs to a downstream task
How do I find more information about this. Which task is this referring to?Sam Eckert
06/26/2023, 3:08 PMflytectl
, there are a few options around archiving/activating launchplans. I have been looking to move our wrapping code around launchplans to use flytekit
, but I'm not seeing corresponding options. As far as I can tell, the LaunchPlan.get_or_create
function just creates the object, but does not activate it. Am I missing something?Dmytro Vremenko
06/26/2023, 3:33 PMcustom_info
field within TaskExecutionEvent
to relay custom information about a task run?Vitali
06/26/2023, 3:42 PM│ flyte 2023/06/23 17:20:25 /go/pkg/mod/gorm.io/gorm@v1.24.1-0.20221019064659-5dd2bb482755/finisher_api.go:509 │
│ flyte [1.083ms] [rows:1] SELECT count(*) FROM pg_indexes WHERE tablename = 'artifacts' AND indexname = 'artifacts_dataset_uuid_idx' AND schemaname = CURRENT_SCHEMA() │
│ flyte {"json":{"src":"start.go:185"},"level":"panic","msg":"Failed to start Propeller, err: Error running FlytePropeller.: failed to load plugin - mpi: [PluginInitializationFailed] Error getting informer for %!s(\u003cnil\u003e), c │
│ flyte panic: (*logrus.Entry)
The MPI Kubernetes Operator works. I followed the documentation from here: https://docs.flyte.org/en/latest/deployment/plugins/k8s/index.html#deployment-plugin-setup-k8s and we deployed the most reason 1.7 flyte release.Richard Li
06/26/2023, 6:07 PMenvd context
Mick Jermsurawong
06/26/2023, 6:27 PMBrennan Tolman
06/26/2023, 7:07 PMNan Qin
06/26/2023, 7:18 PMEuro Cunha Chaves Filho
06/26/2023, 8:46 PMBiao He
06/26/2023, 9:07 PMflytectl demo start
following the starter guide
However I keep hitting error Authenticated requests get a higher rate limit. Check out the documentation for more details.
And it doesn’t show what documentation I should follow (not in the starter guide) could you please help advise?Benjamin Chew
06/26/2023, 10:09 PMPythonTask
and PythonFunctionTask
documentation under flytekit.extend
, and am unsure about what the difference between the 2 are. Specifically, what does it mean by PythonTask
should be used for task types when there is no python function to be executed?