-
Notifications
You must be signed in to change notification settings - Fork 996
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
Restart Ingestion Job on code version update #949
Conversation
this.blacklistedStores = feastProperties.getJobs().getCoordinator().getBlacklistedStores(); | ||
this.currentVersion = feastProperties.getVersion(); | ||
this.jobLabels = new HashMap<>(feastProperties.getJobs().getCoordinator().getJobSelector()); | ||
this.jobLabels.put("version", this.currentVersion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this.currentVersion
be a getter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is private final property, not sure how getter could be useful?
bf8d785
to
f5e5a9e
Compare
f5e5a9e
to
631bff1
Compare
/test test-end-to-end |
edbeea8
to
209a65d
Compare
/test test-end-to-end-batch |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pyalex, woop The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* blacklist -> whitelist * add whitelisted property * coordinator properties in e2e tests * move labels to job & jobcoordinator * it test for version update * version label constant * fix version label
What this PR does / why we need it:
Each Job can have individual labels that are being merged with common labels (see
feast.jobs.runners.options.labels
) before job created. Job labels are being generated & managed byJobCoordinator
. Currently labels consists offeast.job.coordinator.jobSelector
and feast version. Job labels overwrite common labels for the same keys.Added label
feast_version
that keeps version of feast code attached to the job. As soon as new version is being released - JobCoordinator automatically restarts jobs with older version in this label.Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: