<#8919 feature: consider using a sequential UID fo...
# meltano-repo-activity
g
#8919 feature: consider using a sequential UID for a job's run ID Issue created by edgarrmondragon Feature scope Other Description For example, they currently cause the log directories to be ordered randomly Screenshot showing log dirs sorted lexicographically, which doesn't match the timestamp Image so one has to look at the modification date to figure out the last run Screenshot showing log dirs sorted by timestamp Image --- There's a few ways we could do this... ULIDs Similar proposal and considerations to #7272. UUIDv7
UUID version 7 features a time-ordered value field derived from the widely implemented and well known Unix Epoch timestamp source, the number of milliseconds seconds since midnight 1 Jan 1970 UTC, leap seconds excluded. As well as improved entropy characteristics over versions 1 or 6.1
UUIDv82 will already be making it into Python 3.14, and hopefully also UUIDv63 and UUIDv74 will make it. In the meantime, there are third-party implementations like aminalaee/uuid-utils. It's worth noting that the implementation in python/cpython#121119 aims at compatibility with other language implementations: python/cpython#89083 (comment). Footnotes 1. https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#name-uuid-version-7 ↩️ 2. https://github.com/python/cpython/pull/123224 ↩️ 3. https://github.com/python/cpython/pull/120650 ↩️ 4. https://github.com/python/cpython/pull/121119 ↩️ meltano/meltano