Skip to content

Add distributed executor test services to example component - #11

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

Add distributed executor test services to example component#11
moqui-industrial wants to merge 2 commits into
moqui:masterfrom
moqui-industrial:master

Conversation

@moqui-industrial

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
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