FOUR-32613 - Realtime (or at least faster) script executor - #8997
Open
nolanpro wants to merge 6 commits into
Open
FOUR-32613 - Realtime (or at least faster) script executor#8997nolanpro wants to merge 6 commits into
nolanpro wants to merge 6 commits into
Conversation
nolanpro
force-pushed
the
spike/FOUR-32613-C
branch
from
August 18, 2026 23:12
22bf46d to
383c139
Compare
|
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Requires: https://github.com/ProcessMaker/script-executor-service/pull/420
ProcessMaker counterpart to SES realtime executors. New executor type Realtime: customer-owned Dockerfile, dedicated Horizon queue, synchronous SES call, result shown in the script editor (with duration).
Pairs with script-executor-service
spike/FOUR-32613-C.Why
Same as SES: faster script runs, customers own the base image and can customize freely. SES does
docker run --rm -iwith JSON on stdin; PM just has to create the executor, route jobs, and treat the HTTP response as the result (no callback wait).Executor type + admin UI
ScriptExecutorType::Realtime. Creating one sendsrealtime: trueto SES with the full Dockerfile inconfig.Admin language list adds php / python / javascript (realtime) with example Dockerfiles from
resources/script-executors/realtime/*.Dockerfile(bootstrap reads stdin, evals/execs, prints JSON, exits). Customers edit that Dockerfile however they want.Queue
New Redis connection
redis-realtimeand Horizon supervisorsupervisor-realtime(autobalance, 2–20 processes). Preview, Execute, and BPMNRunScriptTaskallonConnection('redis-realtime')->onQueue('realtime')when the executor is realtime.The runner always sends
sync: trueto SES.TestScriptformats the microservice payload locally (no callback) and broadcasts via Echo, including duration.Other
Test plan
realtimequeue and shows output + durationbpmnand the callback path