We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run.created_at
Simple example from https://docs.metaflow.org/metaflow/basics#linear
from metaflow import FlowSpec, step class LinearFlow(FlowSpec): @step def start(self): self.my_var = 'hello world' self.next(self.a) @step def a(self): print('the data artifact is: %s' % self.my_var) self.next(self.end) @step def end(self): print('the data artifact is still: %s' % self.my_var) if __name__ == '__main__': LinearFlow()
This behavior seems incorrect, as modifying tags even impacts flow.latest_successful_run, which should not be affected by metadata changes:
flow.latest_successful_run
>>> from metaflow import * >>> list(Metaflow()) [Flow('LinearFlow'), .....] >>> Flow("LinearFlow") Flow('LinearFlow') >>> list(Flow("LinearFlow")) [Run('LinearFlow/3'), Run('LinearFlow/2'), Run('LinearFlow/1')] >>> Flow("LinearFlow").latest_successful_run Run('LinearFlow/3') >>> Run('LinearFlow/2').add_tag("status:deleted") >>> Run('LinearFlow/2').tags frozenset({'python_version:3.12.9', 'status:deleted', 'user:...', 'metaflow_version:2.14.3', 'runtime:dev'}) >>> list(Flow("LinearFlow")) [Run('LinearFlow/2'), Run('LinearFlow/3'), Run('LinearFlow/1')] >>> Flow("LinearFlow").latest_successful_run Run('LinearFlow/2') >>> Run('LinearFlow/1').created_at datetime.datetime(2025, 2, 24, 19, 14, 49, 784000) >>> Run('LinearFlow/1').add_tag("status:deleted") >>> Run('LinearFlow/1').created_at datetime.datetime(2025, 2, 24, 19, 18, 19, 313000)
The runs are sorted by run.created_at:
metaflow/metaflow/client/core.py
Line 404 in 333eeeb
Am I missing something? I haven't found anything in the docs:
The text was updated successfully, but these errors were encountered:
thanks! we are triaging this
Sorry, something went wrong.
AFAICS this only happens in local mode - when METAFLOW_PROFILE is not set (unset)
METAFLOW_PROFILE
run.created_at timestamps in AWS/S3 etc. do not change after modifying tags.
saikonen
No branches or pull requests
Simple example from https://docs.metaflow.org/metaflow/basics#linear
LinearFlow
This behavior seems incorrect, as modifying tags even impacts
flow.latest_successful_run
, which should not be affected by metadata changes:The runs are sorted by
run.created_at
:metaflow/metaflow/client/core.py
Line 404 in 333eeeb
Am I missing something? I haven't found anything in the docs:
The text was updated successfully, but these errors were encountered: