Skip to content
New issue

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

Send runs artefacts into a dedicated out folder #429

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Send runs artefacts into a dedicated out folder #429

merged 4 commits into from
Feb 29, 2024

Conversation

haixuanTao
Copy link
Collaborator

This PR will send runs artefacts into a out folder instead of the previously used OS temp_dir. This makes it easier to check log files as well as make it clearer to segment the logs per runs of a same dataflow.

Exemple of the tree structure of the out folder

  • log files are prefixed with logs_
  • data recordings are currently saved as input.arrow without prefix

image

Current Limitation

As the tree structure is based on the dataflow_id which is random, the dataflow folder order is not ordered from oldest to latest dataflow which can be confusing.

I can prefix the dataflow folder with a timestamp.

Copy link
Collaborator

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks!

As the tree structure is based on the dataflow_id which is random, the dataflow folder order is not ordered from oldest to latest dataflow which can be confusing.

I can prefix the dataflow folder with a timestamp.

We could switch from v4 UUIDs to v7 UUIDs, which start with a UNIX timestamp. This way, they should be sortable.

libraries/extensions/dora-record/src/main.rs Outdated Show resolved Hide resolved
libraries/extensions/dora-record/src/main.rs Show resolved Hide resolved
@phil-opp phil-opp merged commit 14bb4fb into main Feb 29, 2024
17 checks passed
@phil-opp phil-opp deleted the out_dir branch February 29, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants