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 and compare worker+dataset repo versions #624

Merged
merged 17 commits into from
Oct 26, 2022

Conversation

severo
Copy link
Collaborator

@severo severo commented Oct 25, 2022

to implement #545

  • make the worker aware of its own version
  • store the worker version and the datasets commit hash in the cache
  • perform the three checks before launching (or not) the update of the cache

@severo severo changed the title feat: 🎸 add a version to the workers and compare utils Store and compare worker+dataset repo versions Oct 25, 2022
severo added 16 commits October 25, 2022 20:15
and remove Worker.is_major_version_lower_than_worker
worker_version and dataset_git_revision
A job is skipped if a cache entry already exists, if it is successful,
if the worker version had the same major number and if the dataset git
revision was the same.
A job is skipped if a cache entry already exists, if it is successful,
if the worker version had the same major number and if the dataset git
revision was the same.
it will change the format of the cache reports, by adding the
worker_version and dataset_git_revision fields
it makes the logic simpler. The only restriction is that we can have
only one started job with the same set of arguments (type, dataset,
config, split). It's the job of the worker to check if the job should be
computed or not (worker.should_skip_job)
@severo severo marked this pull request as ready for review October 26, 2022 14:08
@severo severo merged commit 4ab71a1 into main Oct 26, 2022
@severo severo deleted the 545-check-if-update-is-needed branch October 26, 2022 14:08
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.

1 participant