Skip to content

[9.0] Drop the direct use of the JobStateUpdateClient from servers#8121

Merged
chrisburr merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:drop-JobStateUpdateClient-server
Apr 7, 2025
Merged

[9.0] Drop the direct use of the JobStateUpdateClient from servers#8121
chrisburr merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:drop-JobStateUpdateClient-server

Conversation

@chrisburr
Copy link
Copy Markdown
Member

BEGINRELEASENOTES

*RequestManagement
CHANGE: No longer directly use of the JobStateUpdateClient when processing requests
FIX: Calling setJobParameter when processing requests

*Transformation
CHANGE: No longer directly use of the JobStateUpdateClient from the DataRecoveryAgent

ENDRELEASENOTES

@chrisburr chrisburr force-pushed the drop-JobStateUpdateClient-server branch from 9672a68 to d86b689 Compare April 7, 2025 08:33
"""

stateServer = JobStateUpdateClient(useCertificates=useCertificates)
stateServer = _JobDBInteraction(useCertificates)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you're going to run into the same issue with the JobMonitoringClient below.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I know but that is used in multiple places so I thought it was better to focus on one client at a time.

vo = returnValueOrRaise(self._jobStatusUtility.jobDB.getJobAttribute(jobID, "VO"))
return self._elasticJobParametersDB.setJobParameter(int(jobID), key, value, vo=vo)
else:
return self._client.setJobParameter(jobID, key, value)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

To draw attention to this, I think JobStateUpdateClient().setJobParameter no longer works with a host certificate as the VO isn't knonw.

cc @fstagni

@chrisburr chrisburr merged commit 3c22764 into DIRACGrid:integration Apr 7, 2025
21 of 23 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Apr 7, 2025
@chrisburr chrisburr deleted the drop-JobStateUpdateClient-server branch April 7, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JobStateUpdateClient().setJobParameter no longer works with a host certificate

3 participants