Skip to content

XCOMMONS-3249: Allow storing job status and logs in a shared location#1652

Draft
michitux wants to merge 5 commits intomasterfrom
XCOMMONS-3249
Draft

XCOMMONS-3249: Allow storing job status and logs in a shared location#1652
michitux wants to merge 5 commits intomasterfrom
XCOMMONS-3249

Conversation

@michitux
Copy link
Copy Markdown
Contributor

Jira URL

https://jira.xwiki.org/browse/XCOMMONS-3249

Changes

Description

  • Extract the actual loading and saving of job statuses into a separate component to separate it from the caching and make replacing it easier.
  • Expose some APIs for easier re-use of the code.

Clarifications

  • The actual implementation of the database-based job status storage will be in xwiki-platform.
  • This is still a draft because I want to do a full review myself first.

Screenshots & Video

No UI changes.

Executed Tests

Built all changed modules and their legacy versions with the quality profile.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None.

* Refactor DefaultJobStatusStore to make it easier to replace the storage without having to re-implement everything.
* Add the possibility to get the path segments to JobStatusFolderResolver.
* Extend tests to cover the new code.
* Rename methods in PersistentJobStatusStore to be more consistent.
* WIP: More consistent locking and exception handling.
@michitux michitux self-assigned this Feb 26, 2026
* Improve locking and correctness under concurrent access in DefaultJobStatusStore.
* Fix caching non-existing job statuses.
* Add tests.
* Simplify tests by using assertSame.
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.

1 participant