jolly-nail-18749
02/06/2024, 1:10 PMValueError: Empty module name .
from flytekit import task
from flytekit.configuration import Config, ImageConfig, SerializationSettings
from flytekit.remote import FlyteRemote
@task
def my_task() -> str:
    return "hello"
def test_stuff():
    remote = FlyteRemote(
        config=Config.for_endpoint(endpoint="<my_endpoint>"),
        default_project="flytesnacks",
        default_domain="development",
    )
    remote_task = remote.register_task(
        entity=my_task,
        serialization_settings=SerializationSettings(
            image_config="???")
        ),
        version="v1",
    )
    execution = remote.execute(remote_task, inputs={}, wait=True)
    assert execution.is_done
if __name__ == "__main__":
    test_stuff()tall-lock-23197