FU SIAO
12/04/2024, 5:31 AMsession_id
.
I noticed that session.create()
uses generate_timestamp()
to provide a version number.
However, this function is fixed to the UTC timezone, and I need to change it to UTC + n timezone.
Besides directly modifying or inheriting to override session.create()
Does anyone know if there is a way to set the session_id
?
Thanks!
def generate_timestamp() -> str:
"""Generate the timestamp to be used by versioning.
Returns:
String representation of the current timestamp.
"""
current_ts = datetime.now(tz=timezone.utc).strftime(VERSION_FORMAT)
return current_ts[:-4] + current_ts[-1:] # Don't keep microseconds
https://docs.kedro.org/en/0.19.6/_modules/kedro/framework/session/session.htmlHall
12/04/2024, 5:31 AMmarrrcin
12/04/2024, 10:49 AMFU SIAO
12/06/2024, 6:20 AMFU SIAO
12/06/2024, 6:29 AMMerel
12/09/2024, 1:34 PMFU SIAO
12/16/2024, 12:34 AM