quick-lighter-52296
06/08/2022, 12:28 PMtags
parameter perhaps which can then be used to apply the tags on the fly.
Use case: once deployed we want to trigger the SFN multiple times with different input parameters, we would then like to differentiate between the flows. One of the input parameters is a business-specific unique id, so if we could tag the flow with that id, we could then be able to filter the flow afterwards using that tag.quick-lighter-52296
06/08/2022, 12:34 PMdry-beach-38304
06/08/2022, 3:27 PMdry-beach-38304
06/08/2022, 3:27 PMdry-beach-38304
06/08/2022, 3:28 PMsquare-wire-39606
06/08/2022, 9:53 PMquick-lighter-52296
06/09/2022, 3:50 AMquick-lighter-52296
06/09/2022, 5:41 AMmutate_user_tags_for_run
method directly?
2. As I understand even if this PR is merged and rolled out, the feature won’t be live until netflix/metaflow-service
is also updated to implement the new interface right? Do you have very rough timeline on when that would be?dry-beach-38304
06/09/2022, 5:45 AMnamespace(None)
me = Run("%s/%s" % (current.flow_name, current.run_id))
my_tags = me.user_tags
# Look for a tag that says "mftest_group"
self.group_tag = None
for t in my_tags:
if t.startswith("mftest_group:"):
self.group_tag = t
break
if self.group_tag is None:
# Create one
self.group_tag = "mftest_group:%s" % str(uuid.uuid4())[:8]
me.add_tags([self.group_tag])
me.add_tags(["mftest_bootstrap"])
2. This is already released in 2.3.0 IIRC.user
06/09/2022, 5:53 PM@schedule
decorator.