input
stringlengths
1
18.7k
output
stringlengths
1
18.7k
Let me know if you need me in the meeting, if there is datacatalog specific topics
hey join <https://meet.google.com/bjm-pvuq-bcs> Andrew Chan ^
Hi everyone ! Could you please help? I've set up a schedule for the launch plan in my project. Question: How to prevent the new launch plan execution if the previous one still running ? I try to find such option in the source code but I can't found. The concurrent execution of the job is unacceptable for my use case. T...
currently it is not possible to do this - could you open up a github issue in the flyte repo please? could you also describe the use-case/why you want to do this? context always helps.
currently it is not possible to do this - could you open up a github issue in the flyte repo please? could you also describe the use-case/why you want to do this? context always helps.
thanks , I will create the issue on github
Hi. I’m working on flytepropeller plugin. Just a quick question here: am I supposed not to have an access to kubeClient or there is a way to use it?
Hey Igor Valko :wave: To clarify your question. Are you asking if your plugin will have a client so that you can can create and watch k8s resources? If so, the answer is yes, your plugin should have access to that.
Hey Igor Valko :wave: To clarify your question. Are you asking if your plugin will have a client so that you can can create and watch k8s resources? If so, the answer is yes, your plugin should have access to that.
You might be referring core plugins. For k8s plugins I see no means to reach out to kubeClient <https://github.com/lyft/flytepropeller/blob/master/pkg/controller/nodes/task/k8s/plugin_manager.go> or am I missing smth?
You might be referring core plugins. For k8s plugins I see no means to reach out to kubeClient <https://github.com/lyft/flytepropeller/blob/master/pkg/controller/nodes/task/k8s/plugin_manager.go> or am I missing smth?
not missing anything… so the plugin framework is a bit split right now… flyteplugins contains all the interfaces, and flytepropeller implements them. since most use-cases deal with K8s resources, and because there’s a lot of commonality between plugins that just deal with K8s objects, those were all grouped together, i...
not missing anything… so the plugin framework is a bit split right now… flyteplugins contains all the interfaces, and flytepropeller implements them. since most use-cases deal with K8s resources, and because there’s a lot of commonality between plugins that just deal with K8s objects, those were all grouped together, i...
Yes, I see your point. Thanks for the prompt answer.
Thank you for your time and answers! It was very helpful and inspiring meeting! Can you please remind us - Flyte OSS meeting is held on Tuesday at 9AM, correct?
Correct :slightly_smiling_face:
Correct :slightly_smiling_face:
Thank you! Johnny Burns Do you have meets in Hangouts or Zoom or smth else ?
Thank you! Johnny Burns Do you have meets in Hangouts or Zoom or smth else ?
Ruslan Stanevich its on <http://github.com/lyft/flyte|github.com/lyft/flyte> page i should have sent earlier
Ruslan Stanevich its on <http://github.com/lyft/flyte|github.com/lyft/flyte> page i should have sent earlier
see it thank you!
We should probably use <https://aws.amazon.com/awscredits/|https://aws.amazon.com/awscredits/> to perform CI for Flyte releases
Are you saying you want to perform CI in AWS?
Are you saying you want to perform CI in AWS?
Ya It’s free for some
Ya It’s free for some
Interesting. Can you elaborate a bit more? What's your vision for running free CI on AWS?
Interesting. Can you elaborate a bit more? What's your vision for running free CI on AWS?
Every merge to master atleast the Flyte branch gets a set of golden tests
Every merge to master atleast the Flyte branch gets a set of golden tests
How do we qualify for free AWS though (the link you showed is just a trial period, I think)? And would you manually manage the testing platform?
How do we qualify for free AWS though (the link you showed is just a trial period, I think)? And would you manually manage the testing platform?
No they have free for open source
No they have free for open source
Ah, cool. That would be rad. I think we have to apply for that?
Hey all, a bit of a vague request. Many of you know I am building a dagster -&gt; flytekit compiler. I have it seemingly working (can execute the python tasks locally), can successfully register the tasks.
wow super cool! if you have any questions in regards to working with flytekit, feel free to ping me.
wow super cool! if you have any questions in regards to working with flytekit, feel free to ping me.
Thank you Matt!
Almost certainly memory/cpu I think. Heres what I am noticing. my k8s cluster has spun up on the order of 30 sync resources pods that seem to be stuck in pending state. My guess is that is what is going wrong.
Jordan Bramble What happens when you describe the pods using `kubectl describe` ?
Jordan Bramble What happens when you describe the pods using `kubectl describe` ?
I ended up deleting the ones that were pending. I re-registered the tasks, and now when I launch workflow, it hangs with status "UNKNOWN". I no longer see a container corresponding to the workflow being created. This is different than before. screenshot inbound
I ended up deleting the ones that were pending. I re-registered the tasks, and now when I launch workflow, it hangs with status "UNKNOWN". I no longer see a container corresponding to the workflow being created. This is different than before. screenshot inbound
This is likely a different problem from your previous problem. Is it possible `propeller` is not running? How did you delete the pending ones? can you do `kubectl get pods -n flyte` ?
This is likely a different problem from your previous problem. Is it possible `propeller` is not running? How did you delete the pending ones? can you do `kubectl get pods -n flyte` ?
I deleted the containers that were hanging doing: `kubectl get pods -n flyte | grep Pending | awk '{print $1}' | xargs kubectl -n flyte delete pod` here are current pods in the flyte namespace ```Jordans-MacBook-Pro-2:flytekit jordanbramble$ kubectl get pods -n flyte NAME READY STATUS ...
I deleted the containers that were hanging doing: `kubectl get pods -n flyte | grep Pending | awk '{print $1}' | xargs kubectl -n flyte delete pod` here are current pods in the flyte namespace ```Jordans-MacBook-Pro-2:flytekit jordanbramble$ kubectl get pods -n flyte NAME READY STATUS ...
Your pending pods were running in the `flyte` namespace?
Your pending pods were running in the `flyte` namespace?
yes, they were all syncresources-* I previously had a pod ran in a created namespace for the task that I registered in flyte. but I deleted those as well after aborting them. Some were in error.
yes, they were all syncresources-* I previously had a pod ran in a created namespace for the task that I registered in flyte. but I deleted those as well after aborting them. Some were in error.
Hmmm... Your workflow still hasn't launched? Maybe check the FlytePropeller logs?
Hmmm... Your workflow still hasn't launched? Maybe check the FlytePropeller logs?
forgive me for a dumb question, do I do that by running kubectl logs for that pod?
forgive me for a dumb question, do I do that by running kubectl logs for that pod?
Ah. yeah, you can do `kubectl logs -n flyte {propeller pod name}` Also, what happens if you do `kubectl get pods -n {your-project-namespace}-{yourenvironmnt}` maybe `dagstertest-staging` is the namespace
Ah. yeah, you can do `kubectl logs -n flyte {propeller pod name}` Also, what happens if you do `kubectl get pods -n {your-project-namespace}-{yourenvironmnt}` maybe `dagstertest-staging` is the namespace
yes that was the namespace, when I originally started this thread. but launching in the flyte UI is no longer creating a pod under that namespace anymore when I try to access propellor logs: `Error from server: Get <https://172.17.0.2:10250/containerLogs/flyte/flytepropeller-6f897bfd68-4krx8/flytepropeller>: dial tcp 1...
yes that was the namespace, when I originally started this thread. but launching in the flyte UI is no longer creating a pod under that namespace anymore when I try to access propellor logs: `Error from server: Get <https://172.17.0.2:10250/containerLogs/flyte/flytepropeller-6f897bfd68-4krx8/flytepropeller>: dial tcp 1...
Maybe your minikube VM doesn't expose that port. Maybe try to `minikube ssh` and then check logs You can also check the logs for `flyteadmin` service
Maybe your minikube VM doesn't expose that port. Maybe try to `minikube ssh` and then check logs You can also check the logs for `flyteadmin` service
inside of minikube VM, any idea the singificance of these '/pause' commands? ``` docker@minikube:~/dagster_flyte_test$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 33d62a034040 <http://gcr.io/hept...
What does Flyte use redis for? Is it for allocating and releasing tokens for external resources?
Yes it uses refuse to throttle requests to external services to maintain quotas and pools It should be optional In kubernetes this is achieved by resource quota and other means
Yes it uses refuse to throttle requests to external services to maintain quotas and pools It should be optional In kubernetes this is achieved by resource quota and other means
Just to add color to this: In an ideal scenario, external services maintain server side enforced quota/limits within which the service should be expected to behave normally. In the real world though, this is not always the case. As Ketan said, this is an optional component in the sense that plugin authors can choose to...
Another question, after installing the Flyte sandbox I'm running the flytesnacks workflow and receiving a 500: ```$ docker run --network host -e FLYTE_PLATFORM_URL='127.0.0.1:30081' lyft/flytesnacks:v0.1.0 pyflyte -p flytesnacks -d development -c sandbox.config register workflows Using configuration file at /app/sandb...
Do you mind taking a look at this <https://flyte-org.slack.com/archives/CP2HDHKE1/p1584576549032500?thread_ts=1584576549.032500|thread> for suggestions on how to approach this? I would recommend searching the <#CP2HDHKE1|onboarding> channels there are a lot of gems in there :slightly_smiling_face:
_New user here._ I was hoping to invoke microservices with flyte. However, in the discussion on task <https://github.com/lyft/flyte/blob/25d79e37bd02f200976312cbe592a66c563d0041/rsts/user/concepts/tasks.rst|requirements> there is this note on pure functions (*bold* text is my own to call out the question): &gt; Is i...
Hi Joseph, first of all welcome! Hey it is ‘advisable’ to avoid side effects because of idempotency, for example to provide retries and deterministic re execution, it should be replayable That being said if you are calling microservices then there are ways of making it idempotent But making it replayable is very hard A...
Hi Joseph, first of all welcome! Hey it is ‘advisable’ to avoid side effects because of idempotency, for example to provide retries and deterministic re execution, it should be replayable That being said if you are calling microservices then there are ways of making it idempotent But making it replayable is very hard A...
To illustrate ketan's point, if you had an order processing workflow, and the last step calls out to the payments service, you'd need to make sure that if the task re-runs, it doesn't charge the credit card twice.
To illustrate ketan's point, if you had an order processing workflow, and the last step calls out to the payments service, you'd need to make sure that if the task re-runs, it doesn't charge the credit card twice.
Understood. So, if I use compensating transactions I would be cool.
Understood. So, if I use compensating transactions I would be cool.
Yup And again this is a correctness requirement Not a operating requirement If you don’t mind I would love to understand your requirement
Yup And again this is a correctness requirement Not a operating requirement If you don’t mind I would love to understand your requirement
I agree that we can make the microservices idempotent.
_Another new user question_ -- What are the recommended practices for the edit, debug, test cycle in flyte?
Great question so here is what we do at Lyft, i am not saying this is the right way 1. When you write code, you write one task a time and hopefully unit test it somewhat 2. When you are somewhat confident, you can build a container and register it 3. then you run an execution and debug 2/3 are done automatically using ...
Great question so here is what we do at Lyft, i am not saying this is the right way 1. When you write code, you write one task a time and hopefully unit test it somewhat 2. When you are somewhat confident, you can build a container and register it 3. then you run an execution and debug 2/3 are done automatically using ...
That process makes sense. I'd like more details on the debugging side. I'd assume that most of the time people are just logging what seems to be important. When something goes wrong, they look at the output and add extra prints to chase down the issue.
That process makes sense. I'd like more details on the debugging side. I'd assume that most of the time people are just logging what seems to be important. When something goes wrong, they look at the output and add extra prints to chase down the issue.
Here is something I do in personal projects sometimes: I place my task logic in a separate python module. My Flyte workflow mostly handles passing the inputs to those module functions. If I have issues, I just `docker run -it &lt;mydockerimage&gt;` then use a python interpreter and manually test the python module.
Here is something I do in personal projects sometimes: I place my task logic in a separate python module. My Flyte workflow mostly handles passing the inputs to those module functions. If I have issues, I just `docker run -it &lt;mydockerimage&gt;` then use a python interpreter and manually test the python module.
Joseph Winston also Flyte has a way to debug locally from a remote execution. It allows you to load data from partial steps remote and restart an execution maybe of a task locally I use this to debug like in a jupyter notebook
Joseph Winston also Flyte has a way to debug locally from a remote execution. It allows you to load data from partial steps remote and restart an execution maybe of a task locally I use this to debug like in a jupyter notebook
Ketan Umare, can you please point me to the documentation? Thanks.
Ketan Umare, can you please point me to the documentation? Thanks.
here is some private documentation… the earlier portions contain lyft-specific stuff and we just haven’t had time to port things over yet. you’ll need to make sure the correct settings are set as well.
here is some private documentation… the earlier portions contain lyft-specific stuff and we just haven’t had time to port things over yet. you’ll need to make sure the correct settings are set as well.
Thank you Yee - Joseph Winston, we will create an issue to port over this documentation
Thank you Yee - Joseph Winston, we will create an issue to port over this documentation
so perhaps start your python session with something like `FLYTE_PLATFORM_URL=<http://blah.net|blah.net>`
so perhaps start your python session with something like `FLYTE_PLATFORM_URL=<http://blah.net|blah.net>`
Let me try this.
Let me try this.
Thank you
When I submit my workflow, I receive the following trace back: ``` raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: &lt;_InactiveRpcError of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "workflow with different structure already exists with id resource_type:WOR...
you can't delete workflows atm but you can always register with a different version if the workflow structure has changed in the meantime
you can't delete workflows atm but you can always register with a different version if the workflow structure has changed in the meantime
At the moment, no entities are deletable, short of directly modifying the database used by Flyte Admin. Workflow IDs are a unique combination of project/domain/name/version. A new version should exist any time the underlying code changes (it’s common practice for the version to be defined by the current git sha). So if...
At the moment, no entities are deletable, short of directly modifying the database used by Flyte Admin. Workflow IDs are a unique combination of project/domain/name/version. A new version should exist any time the underlying code changes (it’s common practice for the version to be defined by the current git sha). So if...
Joseph Winston all entities in Flyte are immutable baring a few aesthetic attributes. You should worry about wrong registrations just register new ones
Joseph Winston all entities in Flyte are immutable baring a few aesthetic attributes. You should worry about wrong registrations just register new ones
Thanks. I'm doing exactly that.
Does it matter what order you stack the decorators in flytekit? In other words could you specify inputs, outputs, and python_task in any order?
the task decorator needs to come before, but no order for inputs/outputs. you might even be able to apply input and output decorators multiple times. is there something specific you are trying to implement? if the decorators are making it difficult, i might be able to suggest a cleaner way.
the task decorator needs to come before, but no order for inputs/outputs. you might even be able to apply input and output decorators multiple times. is there something specific you are trying to implement? if the decorators are making it difficult, i might be able to suggest a cleaner way.
just curious. As you know I've been building a dagster to flyte compiler. Now I want to include Flyte's typed inputs and outputs. I am programmatically constructing SdkRunnableTask's currently Now, I am trying to figure out the architecture for constructing Inputs and Outputs as well.
just curious. As you know I've been building a dagster to flyte compiler. Now I want to include Flyte's typed inputs and outputs. I am programmatically constructing SdkRunnableTask's currently Now, I am trying to figure out the architecture for constructing Inputs and Outputs as well.
cool! i know parts of dagster are open-source, do you have an example of what you have currently?
cool! i know parts of dagster are open-source, do you have an example of what you have currently?
yes! <https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-flyte/dagster_flyte/flyte_compiler.py#L74> This currently bypasses inputs/outputs in flyte, and relies on dagster for everything.
yes! <https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-flyte/dagster_flyte/flyte_compiler.py#L74> This currently bypasses inputs/outputs in flyte, and relies on dagster for everything.
awesome, and what does passing inputs and outputs look like in dagster, is it by file(s)?
awesome, and what does passing inputs and outputs look like in dagster, is it by file(s)?
so theres a few things. The fields in in the function sig can have typehints and dagster will utilize them. Additionally you can pass input configs and output configs to the `@solid` decorator, and create InputDefinition/OutputDefinition. Let me show you some docs some examples in here: <https://docs.dagster.io/docs/t...
so theres a few things. The fields in in the function sig can have typehints and dagster will utilize them. Additionally you can pass input configs and output configs to the `@solid` decorator, and create InputDefinition/OutputDefinition. Let me show you some docs some examples in here: <https://docs.dagster.io/docs/t...
ok sweet! i’ll take a read of these--it might take me a bit to process. then i’ll try to get back to you with: 1. a high-level overview of how our i/o passing and type system works currently. 2. maybe a couple hints/code snippets i can give as a starting point of how to think about our system in a way that is relevant...
ok sweet! i’ll take a read of these--it might take me a bit to process. then i’ll try to get back to you with: 1. a high-level overview of how our i/o passing and type system works currently. 2. maybe a couple hints/code snippets i can give as a starting point of how to think about our system in a way that is relevant...
Amazing, that would be greatly appreciated. looking at the definitions of inputs and outputs, this actually looks pretty straightforward. Definitely interested in your advice here though. the outputs might be slightly confusing however.
Hi :hand: Do you have experience running flyteadmin in multiple replicas? considering if we have enabled workflow scheduling and notifications. Thank you in advance!
Yes. We run several Admin services (or replicas/pods) always. Admin is stateless. Workflow schedules and notifications should all work independent of the replica size. In fact I encourage you to run multiple replicas for better availability.
Yes. We run several Admin services (or replicas/pods) always. Admin is stateless. Workflow schedules and notifications should all work independent of the replica size. In fact I encourage you to run multiple replicas for better availability.
Thank you Anand! This is good news!
Hello Everyone! Could you please advice about `Spark` in Flyte? So, the question related to `aws-java-sdk` version <https://github.com/lyft/flytekit/blob/master/scripts/flytekit_install_spark.sh#L48> Do you use newer `hadoop` version with newer `aws java sdk` version? Actually, there is no problem with hadoop but I ...
hey Ruslan Stanevich you should be able to update any hadoop jars. I think that script should be taken as a starting point only Also internally we are now using hadopp 3.0 jars because the output committer is better
hey Ruslan Stanevich you should be able to update any hadoop jars. I think that script should be taken as a starting point only Also internally we are now using hadopp 3.0 jars because the output committer is better
Ketan, thank you! Great to know! Will share this info
Hello! We are currently considering using Pachyderm in our company for running our workflows. We recently heard of Flyte and it looks like an interesting alternative. It has some very similar concepts and seems to try to solve some similar pain points. I wonder if someone has compared both solutions, and which conclusi...
Hi Guilherme, welcome Let me formulate a response and I will post back.
Hi Guilherme, welcome Let me formulate a response and I will post back.
interesting. I don’t overly think of Pachyderm and Flyte as exclusive/alternatives (either/or)
interesting. I don’t overly think of Pachyderm and Flyte as exclusive/alternatives (either/or)
. Pachyderm: Cool - they have a git like data management primitive This implies all data has to be stored in their own file system They do have a workflow engine, but it is Json driven and does not really work with other open source projects (AFAIK) like spark, flink, distributed training etc They use some custom stuff...
. Pachyderm: Cool - they have a git like data management primitive This implies all data has to be stored in their own file system They do have a workflow engine, but it is Json driven and does not really work with other open source projects (AFAIK) like spark, flink, distributed training etc They use some custom stuff...
Thanks!
<!here> Hello Flyers, reminder that our bi-weekly Flyte OSS sync is tomorrow, 6/30 at 9am PDT. Ketan and Yee may have a demo of some exciting ML integration if the stars align. Zoom: <https://us04web.zoom.us/j/71298741279?pwd=TDR1RUppQmxGaDRFdzBOa2lHN1dsZz09> Meeting ID: 712 9874 1279 Password: 7stPGd -g
George Snelling I think Chang-Hong Hsu would love to demo it in the next meeting. Its his work :slightly_smiling_face:
George Snelling I think Chang-Hong Hsu would love to demo it in the next meeting. Its his work :slightly_smiling_face:
Ketan Umare thank you for the credits. George Snelling I’d be more than happy to do it in the next meeting and I believe we will have a even more robust integration to show then :)
Hello Everyone! Could you please advise about running specific pyflyte workflow on dedicated eks node? Is using @`sidecar_task` decorator and `pod_spec` only and common approach for setting `nodeSelector` and `tolerations` on running Pods? Thank you in advance! Just needs isolated (with no other pods) node with big dis...
hey Ruslan Stanevich do you want this to be an execution time or launch plan so we have annotations and labels yes otherwise you will have to set it on the sidecar today AFAIK we dont have specific node selector attributes what is the usecase Ruslan Stanevich? the reason why i think its not good to use node affinity, f...
hey Ruslan Stanevich do you want this to be an execution time or launch plan so we have annotations and labels yes otherwise you will have to set it on the sidecar today AFAIK we dont have specific node selector attributes what is the usecase Ruslan Stanevich? the reason why i think its not good to use node affinity, f...
You can pin by requesting the whole machine, very inelegant though and only works for the biggest machine
You can pin by requesting the whole machine, very inelegant though and only works for the biggest machine
Thank you very much for your response! Most of our workflows run in `pyspark` jobs. And, yes, we manage the node selector and annotations for SparkApplication with our tool. We have several `non-spark` tasks, and basically they are quite lightweight But there is a workflow that downloads a large CSV file and process...
Arun Kevin Su Welcome to the community One more member will be joining soon. All of flyte is in golang, There are couple completely parallel projects that are in progress - flytectl and a golang SDK for flyte flytectl is worked on by austin we could also bootstrap golang sdk for flyte and Kevin Su is helping with TFop...
:+1: Welcome!
:+1: Welcome!
We would also love some help in understand how we could add Flyte as a target to TFX - <https://www.tensorflow.org/tfx/api_docs/python/tfx/orchestration>
We would also love some help in understand how we could add Flyte as a target to TFX - <https://www.tensorflow.org/tfx/api_docs/python/tfx/orchestration>
:+1:
:+1:
Ketan Umare If I understand correctly, TFX run on some workflow orchestrator like airflow, kubeflow. If we could implement tfx workflow orchestrator interface. we could run TFX on Flyte. btw, Linkedin has ran TFX on askaban Any WIP issue about this, I'd like to join the thread.
Ketan Umare If I understand correctly, TFX run on some workflow orchestrator like airflow, kubeflow. If we could implement tfx workflow orchestrator interface. we could run TFX on Flyte. btw, Linkedin has ran TFX on askaban Any WIP issue about this, I'd like to join the thread.
No issue yet, we know that tfx can be targeted to an orchestrator. We want to use flyte and in there add flink/spark as the beam runners
No issue yet, we know that tfx can be targeted to an orchestrator. We want to use flyte and in there add flink/spark as the beam runners
Gotcha, I will also investigate on it.
Ketan Umare — do we have video from last week’s meeting? Have been on lookout (was only able to dial in for a few minutes until pulled into helping coworker).
Ohh George Snelling is on the hook for it. He moved us to zoom
Hi Everyone! We’re currently looking into Flyte and the design around data awareness via a type system looks very interesting. I also like the idea of a language independent declarative workflow spec and that you’re building on FP concepts like composition and immutability for caching and repeatability. Playing with F...
hi Sören Brunk first of all welcome. Love that you have been digging into Flyte (more the eyes better it is) Give me a few minutes and I would love to answer all your questions :slightly_smiling_face: Also would love to jump on a call and discuss more at length
hi Sören Brunk first of all welcome. Love that you have been digging into Flyte (more the eyes better it is) Give me a few minutes and I would love to answer all your questions :slightly_smiling_face: Also would love to jump on a call and discuss more at length
Thanks Ketan Umare and no hurries since I’ll try to get some sleep now (European timezone). :slightly_smiling_face: I’d be happy to talk. I’ll PM you tomorrow if that’s ok.
Thanks Ketan Umare and no hurries since I’ll try to get some sleep now (European timezone). :slightly_smiling_face: I’d be happy to talk. I’ll PM you tomorrow if that’s ok.
yes please PM me whenever The points you have brought up are great and your question ```bit confused about task/workflow registration and I couldn't find too much information about it in the docs. The recommended way seems to build a docker container with the workflow code and flytekit.``` Short answer: It is just docu...
yes please PM me whenever The points you have brought up are great and your question ```bit confused about task/workflow registration and I couldn't find too much information about it in the docs. The recommended way seems to build a docker container with the workflow code and flytekit.``` Short answer: It is just docu...
Ok that makes sense, thanks for the explanation. I think I need to get a better feeling for flytekit so I’ll try to build a few example workflows that reflect our use cases. If I hit any major roadblocks I’ll ask here again.
Ok that makes sense, thanks for the explanation. I think I need to get a better feeling for flytekit so I’ll try to build a few example workflows that reflect our use cases. If I hit any major roadblocks I’ll ask here again.
Yes please, I also understand that flytekit needs work so please feel free to reach out
Hello Everyone! Does anybody work with Dynamic tasks? I'm trying to run dynamic tasks sequentially, but it always runs in parallel even I set `max_concurrency=1` The sample workflow: ```from __future__ import absolute_import, division, print_function from flytekit.sdk.tasks import dynamic_task, inputs, outputs, python...
Yee / Haytham Abuelfutuh if you near a computer. Else I will answer in a bit
Yee / Haytham Abuelfutuh if you near a computer. Else I will answer in a bit
here... answering... Hey Aleksandr, yes max concurrency is not yet implemented unfortunately. However, you can achieve what you want by generating a workflow with node dependencies between the nodes in the `@dynamic_task` . Let me try to write you an example: <https://github.com/lyft/flytesnacks/blob/master/cookbook/wo...
here... answering... Hey Aleksandr, yes max concurrency is not yet implemented unfortunately. However, you can achieve what you want by generating a workflow with node dependencies between the nodes in the `@dynamic_task` . Let me try to write you an example: <https://github.com/lyft/flytesnacks/blob/master/cookbook/wo...
many thanks, looks like it should help Haytham Abuelfutuh could you share any timelines when `max_cuncurrency` can be implemented?
many thanks, looks like it should help Haytham Abuelfutuh could you share any timelines when `max_cuncurrency` can be implemented?
hi Aleksandr Vergeychik can you please file an issue or +1, if there is one. I think someone is looking into this. Lets use that forum
I’m trying to run Spark tasks to run in a Flyte sandbox installation but I’m running into issues. I managed to configure everything so that Flyte starts the driver pod but now I’m stuck with the following error (from the pod logs): ```Usage: entrypoint.py [OPTIONS] COMMAND [ARGS]... Try 'entrypoint.py --help' for help....
Sören Brunk (in a meeting) will brb
Sören Brunk (in a meeting) will brb
hi. this is installed by flytekit <https://github.com/lyft/flytekit/blob/eec85fb35e5dd975840aa0019dfdc167af1e4f29/setup.py#L55> so please make sure in your pip requirements file that you install `flytekit[spark]` or better yet `flytekit[all]` instead of just `flytekit`
hi. this is installed by flytekit <https://github.com/lyft/flytekit/blob/eec85fb35e5dd975840aa0019dfdc167af1e4f29/setup.py#L55> so please make sure in your pip requirements file that you install `flytekit[spark]` or better yet `flytekit[all]` instead of just `flytekit`
Sören Brunk
Sören Brunk
Yee thanks. Yes I’m installing `flytekit[spark]` (haven’t tried `flytekit[all]` yet. Essentially, I’ve taken the <https://github.com/lyft/flytesnacks/blob/master/python/Dockerfile|Dockerfile of the python example from flytesnacks>, then I’ve added these lines: ```RUN ${VENV}/bin/pip install flytekit[spark] RUN ${VENV}/...
Yee thanks. Yes I’m installing `flytekit[spark]` (haven’t tried `flytekit[all]` yet. Essentially, I’ve taken the <https://github.com/lyft/flytesnacks/blob/master/python/Dockerfile|Dockerfile of the python example from flytesnacks>, then I’ve added these lines: ```RUN ${VENV}/bin/pip install flytekit[spark] RUN ${VENV}/...
what happens if you just ```ENTRYPOINT [ "/opt/flytekit_spark_entrypoint.sh" ]``` (after copying the file there ofc)
what happens if you just ```ENTRYPOINT [ "/opt/flytekit_spark_entrypoint.sh" ]``` (after copying the file there ofc)
Same error ( I have to add `. ${VENV}/bin/activate` to flytekit_spark_entrypoint.sh in this case because I otherwise I can’t register tasks).
Same error ( I have to add `. ${VENV}/bin/activate` to flytekit_spark_entrypoint.sh in this case because I otherwise I can’t register tasks).
sorry yeah
sorry yeah
Anmol Khurana can probably provide the most context here. but i believe the way spark assumes entrypoints wreaks havoc on venvs. i would suggest the following: 1. make `ENTRYPOINT ["/opt/flytekit_spark_entrypoint.sh" ]` 2. then make an executable script of your own which activates venv and then passes along the args. ...
Anmol Khurana can probably provide the most context here. but i believe the way spark assumes entrypoints wreaks havoc on venvs. i would suggest the following: 1. make `ENTRYPOINT ["/opt/flytekit_spark_entrypoint.sh" ]` 2. then make an executable script of your own which activates venv and then passes along the args. ...
Thanks Matt Smith I’ll try your suggestions tomorrow and report back.