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

Store opensanctions data based on run IDs #839

Closed
wants to merge 168 commits into from
Closed

Store opensanctions data based on run IDs #839

wants to merge 168 commits into from

Conversation

pudo
Copy link
Member

@pudo pudo commented May 10, 2024

No description provided.

@pudo pudo marked this pull request as draft May 10, 2024 18:25
Copy link
Contributor

@SimonThordal SimonThordal left a comment

Choose a reason for hiding this comment

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

Nice!
So this stores the history of a dataset in runs/{dataset}/meta.json where each run is stored as {"items": ["12042024-ABCD", "13042024-AFEB",...]}, correct?

zavod/zavod/runs.py Outdated Show resolved Hide resolved
zavod/zavod/runs.py Outdated Show resolved Hide resolved
@pudo
Copy link
Member Author

pudo commented May 13, 2024

Yeah it might be too simple but so far I haven't yet figured out how - it just keeps a list of history items and also puts it into a run folder. So if the items in the index file is limited to 100 and you want to go back 120, you just fetch the latest history, and then history file inside of the run folder for items[0] (the oldest run)....

@pudo pudo closed this May 24, 2024
@pudo pudo deleted the pudo/run-id branch May 24, 2024 15:29
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.

None yet

5 participants