Hi,
I need a way to schedule tasks based on host capabilities (I called it
worker_resources in the code, but that can be changed), so for example
one task can be executed by a worker with a capability (specified in a
parameter on startup), but not by the other (where the capability is not
in the startup parameters).
I know, this can be done with external requirements, but I don't want to
take that path if I don't have to. If you see any other ways to make
this work without code change in luigi, please let me know.
I found a similar idea implemented previously, but not merged:
https://github.com/spotify/luigi/pull/1669
I forked luigi and made changes in the code (see commit message):
https://github.com/kz0ltan/luigi/commit/2bab8685a9483dcaf91195900b0446fd66a3af7f
If you know the inner workings of luigi, I'd like to ask you to take a
look at it and let me know if you see any glaring problems I made with this
change.
Thanks