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

[WIP] pyDKB/message: introduce for_update() method. #321

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgolosova
Copy link
Collaborator

It allows to mark message as "for update"; without this marker (and without "incomplete" one, after #320) it will be treated as "for insert" by the pre-load stage (e.g. Stage 019).


Somehow this functionality was left out of the whole picture related to the "update" issue.

Now what we have: we have instrument to mark message as "incomplete", and (after #320) Stage 19 will decorate "incomplete" messages with "update" instructions. But in some cases we'd like to use "update", but not mark the record in the ES as "incomplete": e.g. if we know for sure that in some external source there will never appear data that we are supposed to get from there (like, after the dataset was removed from Rucio metacatalog, there will never appear information about the dataset size of number of events).

For now there's no pressing need for this functionality to be implemented so I mark this PR as [WIP] -- since it is very "un-DRY" version and it would be better to somehow unify handling of incomplete and for-update markers.

It allows to mark message as "for update"; without this marker it will
be treated as "for insert" by the pre-load stage (e.g. Stage 019).
@mgolosova mgolosova self-assigned this Feb 17, 2020
@mgolosova mgolosova marked this pull request as draft August 13, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant