FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add distributed executor test services to example component by moqui-industrial · Pull Request #11 · moqui/example · GitHub

/ example Public

Add distributed executor test services to example component - #11

Open
moqui-industrial wants to merge 2 commits into
moqui:masterfrom
moqui-industrial:master
Open

moqui-industrial wants to merge 2 commits into
moqui:masterfrom
moqui-industrial:master

Conversation

Copy link
Copy Markdown

Adds example services and REST endpoints for validating distributed scheduled execution.

Changes:

  • add test#ScheduleService and test#Echo
  • add test#ScheduleRealJob and test#RunAutoApproveDistributed
  • expose test endpoints under service/example.rest.xml

Purpose:

  • validate distributed scheduling behavior
  • validate execution of a real distributed job path

Demonstrates <service-schedule> and <cancel-scheduled-service> XML actions
with distribute="true". test#Echo logs the executing node runtime path and
thread name so cluster-wide task distribution is directly observable.
Expose via REST at /rest/s1/example/test/scheduleService (anonymous-view).
test#ScheduleRealJob schedules mantle.order.OrderServices.autoApprove#OrdersDelayed
as a one-shot distribute=true task via the Hazelcast distributed executor.
test#RunAutoApproveDistributed wraps the real service with log lines that report
which node executes it, making cross-node distribution directly observable in logs.

REST endpoint: POST /rest/s1/example/test/scheduleRealJob
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL