Skip to content

Conversation

Robin-Van-de-Merghel
Copy link
Contributor

@Robin-Van-de-Merghel Robin-Van-de-Merghel commented May 15, 2025

BEGINRELEASENOTES

*WMS
FIX: Add future DiracX Pilots DB (support for secrets)

ENDRELEASENOTES

@chrisburr chrisburr marked this pull request as draft May 19, 2025 09:16
@Robin-Van-de-Merghel Robin-Van-de-Merghel force-pushed the robin-add-diracx-pilotdb branch 6 times, most recently from e5e6870 to e4c3e28 Compare May 21, 2025 14:51
@Robin-Van-de-Merghel Robin-Van-de-Merghel force-pushed the robin-add-diracx-pilotdb branch from e4c3e28 to 3bb6ac8 Compare June 4, 2025 12:06
@Robin-Van-de-Merghel
Copy link
Contributor Author

@Robin-Van-de-Merghel Robin-Van-de-Merghel marked this pull request as ready for review June 26, 2025 06:18
@Robin-Van-de-Merghel Robin-Van-de-Merghel force-pushed the robin-add-diracx-pilotdb branch from 70d6ea4 to 5f54d5a Compare July 1, 2025 13:13
@Robin-Van-de-Merghel Robin-Van-de-Merghel changed the title feat: Add DiracX support into the database. [9.1] Add DiracX support into the database. Jul 17, 2025
`AccountingSent` ENUM('True','False') NOT NULL DEFAULT 'False',
PRIMARY KEY (`PilotID`),
KEY `PilotJobReference` (`PilotJobReference`),
KEY `PilotStamp` (`PilotStamp`),
Copy link
Member

Choose a reason for hiding this comment

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

Should drop DEFAULT ''

Copy link
Member

Choose a reason for hiding this comment

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

And make it unique

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't be unique in DIRAC:

  1. DIRAC creates a pilot with a reference
  2. CEs generate stamps and returns to DIRAC
  3. DIRAC associates these stamps with pilots

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be refactored in DiracX as stamps are the primary indentifier

@Robin-Van-de-Merghel
Copy link
Contributor Author

Robin-Van-de-Merghel commented Aug 7, 2025

Is this PR useful? It only adds a key for pilot stamps

I mean, as we move the secret table into DiracX auth, normally the database is automatically created without the need to implement it in DIRAC?

POC: https://github.com/DIRACGrid/DIRAC/actions/runs/16797372818/job/47570725488?pr=8279 working without adding the DB in DIRAC.

@fstagni
Copy link
Contributor

fstagni commented Aug 7, 2025

I also doubt it is needed.

@Robin-Van-de-Merghel
Copy link
Contributor Author

Maybe just keep the Key for performance improvment ?

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.

3 participants