<#5288 [Docs] improve docs on eager workflow remot...
# flyte-github
a
#5288 [Docs] improve docs on eager workflow remote execution Issue created by vttrifonov ### Description I am very excited to learn about eager workflows! Unfortunately, so far I have not managed to make them work for me outside of sandbox and local. The documentation focuses mostly on sandbox/local execution and for remote there is just a blurb. Throughout the doc it seems like
@eager()
is enough to decorate the eager workflows but is seems like for remote workflows
@eager(remote=...)
needs to be included everywhere (?). I understand (vaguely) why this is, but it does not make for a good looking code... This is not needed for
@task
and
@workflow
so the natural expectation is that it should not be needed for
@eager
as well. In any, case a more complete example with eager sub-workflows with remote in mind will be nice. The second issue I ran into is that even when remote is set it turns out I also need 'secret_group' and 'secret_key' (otherwise an
AssertionError: secret_group must be defined when using a remote cluster
pops). This is where my attempts for using this feature have stalled. The documentation makes it sound like the person who writes the workflows (me) is the same as person who sets up the cluster (a very busy team of devops in our case). Other than toy examples, this is not true in general. For example, the doc says
Where config.yaml contains a flytectl-compatible config file and my_client_secret_group and my_client_secret_key are the secret group and key that you’ve configured for your Flyte cluster to authenticate via a client key.
When I read this initially I thought that I need to setup the cluster somehow (it sounds like my_client..., I've configured, my cluster etc) but then upon reading the secrets and authentication page (this should be linked in the eager workflow doc) it became more clear this is something that perhaps devops needs to do and then I get it from them. Not sure yet... I do not know much about setting up Kubernetes clusters but overall the impression is that to run
@eager
now I also need help from devops to intervene somehow. Overall,
@eager
is a great feature that needs to crystalize further. I am hoping my comments here will help a bit. Ideally, the remote executing code should look (mostly) like the local one. In the meantime, a bit better documentation (for non-devops people) for what it takes to setup and run with remote will be helpful. ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte