Hello all -- please take a look at the following f...
# dev-metaflow
m
Hello all -- please take a look at the following feature proposal for adding support for
labels
and
annotations
to the
@kubernetes
decorator API. https://docs.google.com/document/d/1OATttdFrwYRHFaq0HC7iwuXApELx1T8p9KAFopYgFLE/edit?usp=sharing
a
Thanks! Cc @thankful-ambulance-42457 @brainy-truck-72938 for review
👀 1
❤️ 1
m
Apologies for not setting the permissions right for the Google Doc -- it should be open now for anyone who follows the above link~
d
@melodic-musician-54941 there was also an open issue around adding priority class to the K8s decorator https://github.com/Netflix/metaflow/issues/1752. This would be useful for supporting preemption.
m
Adding support for a
PriorityClass
specification would be interesting -- likely a good idea for a follow-on / future PR
Pinging the thread for visibility -- any further actions required on my end to keep the process going?
a
We can start on a POC PR!
❤️ 1
m
Huzzah! Should I note anything specific on the PR when I submit it?
b
I took some time to rebase/fix an ancient PR around this issue, which could act as a basis for refinement. You can find it and any commentary on the changes here: https://github.com/Netflix/metaflow/pull/1568
one of the main considerations when it comes to Argo is how to treat
METAFLOW_KUBERNETES_ANNOTATIONS
. The current branch works off the assumption that we want to treat values from the env var as globals, so they are set on a workflow template level, and to any other argo resource we create (such as sensors). annotations/labels explicitly set through the decorator however only apply to immediate task resources, e.g. the pods that run them.
m
Appreciate you picking this up again! I hadn't seen this stale PR before, so it makes sense that the work could just continue from there.
Looking over the PR, everything looks good to me! The updates I laid out in my Google doc appear to be covered in the commits and your resolution of the Argo conflicts wasn't something I had considered, so that's all good too~