Fork me on GitHub

Announcing Daguerreo, a task execution library! > Daguerreo is a library to create workflows using tasks. It takes care of dependency resolution, parallellism, retries and timeouts and let’s you focus on your business logic. It shares the basic structure of other task execution libraries such as Airflow or Luigi, but unlike those it is meant to be embedded in your application rather than run as a standalone service.

👏 60
🎉 4

Any plans to add checkpointing/handling process failures?


Not sure what you mean by that, but I’m certainly open to feature requests/suggestions 🙂 If you’re interested, please open an issue describing what you’re looking for and maybe an example use-case! 🙏


I guess checkpointing = restart the job from “in the middle” to avoid redoing a bunch of work?


yes, of course for that you will need a pluggable persistent storage for checkpoints


this looks like a single-process version of it, without any process-level execution guarantees (ie. if I kill the running DAG, I have to handle resuming it somehow)


correct, because of that it is not really suited for really long-running workflows (e.g big data-crunching jobs)


the sweet spot for Daguerreo in it’s current state is when you have lots of smaller tasks that interact with each other in complex ways, but the overall time of the job is “short”, for some definition of short

👌 4

makes sense, beats a hardcoded AST for sure 🙂 thanks!


> correct, because of that it is not really suited for really long-running workflows (e.g big data-crunching jobs) but if this is intended then the comparison with Airflow and similar tools that fit this niche is unfair IMO


the comparison is not meant to imply “Daguerreo matches the features of these libraries”, but “if you are familiar with these libraries, it will help you understand Daguerreo faster”. I’ll re-phrase it and add some more in-depth comparisons on how they differ, thanks for the feedback! :thumbsup:

👍 4

I don't quite understand why did you choose not to rely on jvm thread interruption mechanism


if correctly implemented, blocking calls such as Thread/sleep support cancellation via Thread/interrupt, and polling is supported as well via Thread/isInterrupted


@U053XQP4S the reason is partly that I don’t want to expose users to old-school Java threading details, and partly that there are lots of libraries that don’t handle interrupts properly anyway. So my choice was to make it explicit and force the user to handle it rather than relying on a potentially shaky, more implicit solution. The current solution can also be modified to handle interrupts if I ever want to go down that road (I think :D). So that the reasoning, whether it’s good or not I’m actually not sure myself 🙂


I’m looking forward to playing with Missionary in an upcoming project btw, it looks really cool! 🙂

👍 4

that makes sense, however I find useful to have a way to be actively notified of cancellation (in addition to passive polling), for instance by attaching a callback to the token


agree, that’s something I overlooked in the initial release. Would an on-complete callback suffice you think? then you can check the completion status in the callback and handle it, or hook it up to something like Manifold can work with deffereds instead


a callback looks like the most flexible solution to me, you can hook up to anything supporting cancellation, including a nested job and even Thread/interrupt


BTW you can make it a non-breaking change if you implement it on the arity 1 of is-active? 😉


Dirac v1.4.0 is out. Featuring initial Figwheel Main integration. Give it a spin:

cljs 28
👍 8