Replies: 4 comments 7 replies
-
Hey @frank-bee, thanks for sharing your use case! This sounds very similar to some problems we have at @dynotx actually, so it's very cool to see the parallels
Hera offers this already! Check out the docs on pre-build and post build hooks here! Let me know if that helps |
Beta Was this translation helpful? Give feedback.
-
Meanwhile, I try to convince our devteams with some other idea. Basically
to have fast local docker image build (with proper caching).
See here
#618 (comment)
Flaviu Vadan ***@***.***> schrieb am Mo., 5. Juni 2023, 22:14:
… Hey @frank-bee <https://github.com/frank-bee>, thanks for sharing your
use case! This sounds very similar to some problems we have at @dynotx
<https://github.com/dynotx> actually, so it's very cool to see the
parallels
Another approach I thought of, would be to use hera "hooks"
Hera offers this already! Check out the docs on pre-build and post build
hooks here!
<https://hera.readthedocs.io/en/stable/getting-started/walk-through/advanced-hera-features/>
Let me know if that helps
—
Reply to this email directly, view it on GitHub
<#665 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDG74RBCUX2BINYE5LW53XJY43TANCNFSM6AAAAAAYXIKIWY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, I use docker buildx in my latest approach Image streaming sounds interesting! didn't know about that yet - but we are on AWS anyway |
Beta Was this translation helpful? Give feedback.
-
As I said, I think with dockerx, proper caching, this is not needed:
https://github.com/aiknow-public/hera-blueprint
I looked at the hooks:
Is it possible to a)launch a pvc at workflow initialization time and b) In
each task /Script of the DAG of that workspace infer some code as well?
The hook example was rather simple, so I cannot tell if that usecase would
be possible. Maybe worth a try....
Viele Grüße,
Frank
…--
Vom Handy gesendet
Flaviu Vadan ***@***.***> schrieb am Di., 6. Juni 2023, 14:50:
Did the Hera hooks provide the necessary support for your use case?
—
Reply to this email directly, view it on GitHub
<#665 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDG7YN32FKA5WUG3U7NHDXJ4RRRANCNFSM6AAAAAAYXIKIWY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
In our teams, the data engineers have the following need:
They want to be able to run a a workflow with their business logic ( the actual code ) packed into a package.
But during development they do not want to create a docker image which comes with the package (plus third party packages) but run the workflow "immediately".
Does anybody has the same need?
BTW: This idea is a little bit what Airflow does ( e.g. copying the actual workflow code from git or from AWS S3 - during runtime)''
One of the developers from our teams now found a way to achieve this.
It works somehow as follows:
It works quite good, that's what I have heard fro the team
Basically any modification in the business logic can be tested immediately by creating a workflow and submitting it to the Argo server (with means of Hera)
I'm a DevOps and my goal is find a more clean way to achieve this.
Ideally Hera itself could be enhanced to support this.
Another approach I thought of, would be to use hera "hooks" ( I have seen that somewhere in the codebase) .
With one hook on workspace level , the code could be injected which runs whenever a workflow starts.
Additionally in each Task ( or actually Script) via another hook, the other code is injected responsible for the download of the code and the installation of the package(s).
Does this make sense? I'm not so familiar with python and have to get into it. Would be great if someone could post a small example for the usage of these hooks.
Beta Was this translation helpful? Give feedback.
All reactions