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

[QC-1026] Separate source / target QCDB for postprocessing #2371

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

Barthelemy
Copy link
Collaborator

No description provided.

@Barthelemy Barthelemy changed the title [QC-1026] Separate source / target QCDB for postprocessing [WIP] [QC-1026] Separate source / target QCDB for postprocessing Jul 11, 2024
@Barthelemy Barthelemy changed the title [WIP] [QC-1026] Separate source / target QCDB for postprocessing [QC-1026] Separate source / target QCDB for postprocessing Aug 19, 2024
if (mPublicationCallback == nullptr) {
mPublicationCallback = publishToRepository(*mDatabase);
mPublicationCallback = publishToRepository(*mDestinationDatabase);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If done like this, it will only work in cases when a postprocessing task is ran with o2-qc-run-postprocessing, that is without DPL. When we run with DPL, this callback is set by PostProcessingDevice to publish objects into DPL, then CheckRunners receive them, apply Checks and store them to the database they use.

I think it will be very misleading if it works only for some cases.

How about getting rid of the destinationRepo parameter and using always the main repo as the destination?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, we can do that for the destinatino repo. I did not think of this issue and thought that why not add both source and destination. I'll amend the PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have pushed a commit

I kept "destinationDatabase" in the `PostProcessingRunnerConfig` because there is a "sourceDatabase" and having "mDatabase" seemed confusing.
@Barthelemy Barthelemy merged commit ad246d7 into AliceO2Group:master Aug 20, 2024
7 checks passed
@Barthelemy Barthelemy deleted the source_target_qcdb_pp branch August 20, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants