Skip to content

Combind job store trd 85 - #3

Merged
pahjbo merged 7 commits into
mainfrom
combindJobStore_trd_85
Jul 2, 2026
Merged

pahjbo merged 7 commits into
mainfrom
combindJobStore_trd_85

Conversation

@slloyd-src

Copy link
Copy Markdown
Contributor

Updated some of the calls in both async and sync due to @transactional being required.

  • Added @transactional to all the async endpoints that modify the database, adding overloaded methods in the BaseAsyncTAPResource to reduce the need to add it for other projects.
  • The same can be said for the BaseSyncTAPService, however a TapJobService bean has been added to allow for the wrapping up of "createJob" in a Transactional annotation. This particular example application calls createJob in a SmallRye Uni context which means the call is actually processed on another thread which means that the original Transactional call is not longer valid.

Added the persist package of UWS to the hibernate objects in application.properties for UWSJobEntity visibility
Same for the service object used on the sync methods as they exist in their own right (due to the Uni launching the create job on a separate thread)
# Conflicts:
#	src/main/java/org/javastro/ivoa/tap/AsyncQueryResource.java
#	src/main/java/org/javastro/ivoa/tap/QueryResource.java
…ons) due to the changes to hide most of the operations from the TapServer.

Added the transactional overridden methods to the sync base class for the same reason.
Sync approach requires a custom bean that can be indexed due to Uni moving the actual createJob call to a different thread
@slloyd-src
slloyd-src requested a review from pahjbo June 30, 2026 15:16
@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

Test Results

0 tests   - 14   0 ✅  - 14   0s ⏱️ -30s
0 suites  -  4   0 💤 ± 0 
0 files    -  4   0 ❌ ± 0 

Results for commit 2bb95b9. ± Comparison against base commit 1fd23b4.

♻️ This comment has been updated with latest results.

@slloyd-src

Copy link
Copy Markdown
Contributor Author

Build failed due to the new version of ivoa core not being reviewed and deployed yet.
Javastro/ivoacore#5

@pahjbo

pahjbo commented Jul 2, 2026

Copy link
Copy Markdown
Member

I think that this is ok despite the failed builds on GitHub - caching probably responsible

@pahjbo
pahjbo merged commit 818ed87 into main Jul 2, 2026
1 of 2 checks passed
@pahjbo
pahjbo deleted the combindJobStore_trd_85 branch July 2, 2026 15:15
@pahjbo pahjbo mentioned this pull request Jul 2, 2026
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.

2 participants