BoxLang 1.20: Run Once, Across the Fleet

Ortus Solutions today announces BoxLang 1.20.0, packed with tons of fixes, improvements turesand some compelling new features. Meet the BoxLang Clustering Services and clustered scheduled tasks, so your nightly job runs once across every node instead of once per node. Add built-in HTTP retry with withRetry(), live process output with cancellation, first-class symbolic links, faster object creation, tighter security and a long list of CFML compatibility fixes. 55 issues, one clear direction: run real production systems on BoxLang with confidence.
class {
function configure() {
scheduler.task( "nightly-report" )
.call( () => createObject( "ReportService" ).build() )
.everyDayAt( "02:00" )
.setCluster( true )
}
}
Deploy that same scheduler to ten servers. The report builds once. 🚀
BoxLang Clustering Services 🌐
Run the same application on many servers and the servers need to know about each other. Until now BoxLang left that to you: a database table here, a Redis key there, a "node 1 is special" flag everywhere.
BoxLang 1.20 makes it part of the runtime. BoxLang Clustering Services is a framework for building cluster-aware features, with a full API that is yours to use. It is not a scheduler setting. Scheduled tasks are simply the first feature we built on top of it, and your own code and modules get the same foundation.

What every node gets
- Node identity. Every node has an id,
{hostname}-{pid} by default, or the nodeId you set when your platform gives you a stable pod or task name
- Named clusters. Nodes with the same
cluster.name see each other. Different names never do, so one shared cache can serve several clusters
- Membership and heartbeat. Each node rewrites its own record in the shared cache every 5 seconds by default. A node that stops beating drops out of the fleet on its own after about three missed beats
- Node attributes. An open struct on every node record. Any feature can add keys of any type, and the feature that adds them owns their meaning
- A view of the fleet. A lazily refreshed snapshot of every node, with helpers to read one node, the peers, or a single attribute
- Any shared store. Coordination goes through a BoxLang cache backed by a store every node can see, such as Redis, a JDBC store, or a
FileSystemStore on a shared volume
A full API, not just tasks
The scheduler uses this API like anyone else would. It publishes a rolling measure of how busy each node is as the attribute scheduler.taskSeconds, and peers read it to share work by load. You can do the same for your own data in three ways.
Push. Hold the service and write to it whenever you like. The next heartbeat picks up whatever is there. Java integrators reach it with BoxRuntime.getInstance().getClusterService():
ClusterService cluster = BoxRuntime.getInstance().getClusterService();
cluster.setAttribute( "perf.cpu.load", 0.42 );
cluster.mergeAttributes( Struct.of( Key.of( "region" ), "us-east" ) );
cluster.removeAttribute( "perf.cpu.load" );
Contribute. Register a supplier and its struct is merged into the node's attributes before each record write. A contributor that throws is logged and skipped, so no contributor can make a node look dead:
cluster.addAttributeContributor( () -> Struct.of( Key.of( "queueDepth" ), queue.size() ) );
Announce. On every heartbeat BoxLang fires the onClusterNodeAttributes interception point before it writes the record. Listen for it from BoxLang and add your own keys:
// Interceptor: add this node's data when the announcement fires
function onClusterNodeAttributes( data ) {
data.attributes[ "region" ] = "us-east"
}
Then read the fleet from any node:
getNodes() returns every known node, including this one, and getPeers() returns everyone else
getNode( nodeId ) returns one record, and getNodeAttribute( nodeId, path, default ) returns one value by dotted path
getNodeNavigator( nodeId ) wraps a record for chaining, and getClusterReport() gives a diagnostic view of the node id, cluster name, cache, mode, attributes and known nodes
Object load = cluster.getNodeAttribute( "web-2", "attributes.perf.cpu.load", 0.0 );
The peer view is lazy. Nothing polls on a timer, so a deployment where nothing asks for peers does no peer reads at all. And getNodeAttribute is forgiving by design: the default shapes the result, and attributes older than three heartbeats return your default, so one feature's bad value or a stale node cannot break another feature's read.
Built to stay small
- It never decides anything. No leader election, no "who is busiest", no claim arbitration. The service publishes data and hands it back, and every judgment belongs to the feature built on top. That keeps it small and stops it from growing into a distributed consensus framework
- Best effort coordination. The shared cache offers no atomic create, so features on top must tolerate a narrow window where two nodes act at once
- One root in the cache. Everything lives under
bxcluster:{cluster}:, and each feature owns its own segment beneath it
- No cost when unused. A node that is not in a cluster does no coordination work
What is built on it
- Clustered scheduled tasks ship in 1.20.0, and you will meet them next
- Cache invalidation, distributed locking and per-node health aggregation are the design intent. The service is built so features like these can sit on it, and none of them ship on it in 1.20.0
Turn it on with a top-level cluster block in boxlang.json on every node, and point cacheName at a cache they can all reach. The bundled default cache is local to each JVM, so nodes sharing it never see each other. Use Redis, a JDBC store, or a FileSystemStore on a shared volume. At startup BoxLang writes, reads back and removes a test value to prove the cache works, so a misconfigured cache shows up immediately:
{
"cluster": {
"enabled": true,
"cacheName": "bxcluster"
},
"scheduler": {
"clusterMode": "balanced"
},
"caches": {
"bxcluster": {
"provider": "Redis",
"properties": {
"host": "redis.internal.example.com",
"port": "6379"
}
}
}
}
Clustered scheduled tasks (BL-2800)
The first feature built on Clustering Services. If you have ever deployed one codebase to several nodes, you know the problem: every node loads the same Scheduler.bx, so everyDayAt( "02:00" ) fires on every server. Nightly cleanups, billing runs, report generation and cache warm-ups all run N times. Teams have worked around it for years with database locks, sticky servers and "only run on node 1" flags.

Mark a task as clustered with setCluster( true ), or cluster="true" on bx:schedule, and each occurrence runs on exactly one node. You get:
- Load-based sharing of occurrences across the fleet.
eager mode (the default) uses a short random delay, and balanced mode lets nodes rank each other by published load so an idle node takes the job
- Failover without double runs. A clustered task never re-runs an occurrence. A crashed run is recorded as
abandoned and the next occurrence runs normally
- Graceful shutdown with configurable grace periods
- A full run history in
scheduler.log
- Overlap control. By default the next occurrence is skipped while the previous one is still running, or choose
run to allow overlap
- Familiar API.
onOneServer() keeps working and now means setCluster( true )
Every node registers the exact same scheduler, unchanged. One honest note: claims go through a shared cache, which offers no atomic create, so in a very narrow window an occurrence can still run twice. Make clustered jobs idempotent. Opt individual tasks out when they must run everywhere:
class {
function configure() {
scheduler.task( "nightly-report" )
.call( () => createObject( "ReportService" ).build() )
.everyDayAt( "02:00" )
.setCluster( true )
// Needs to run on every node, for example to warm a local cache
scheduler.task( "warm-local-cache" )
.call( () => createObject( "CacheWarmer" ).run() )
.every( 10, "minutes" )
.setCluster( false )
}
}
Prefer templates? bx:schedule takes the same controls through its cluster and overlap attributes.
Scheduling got more reliable all around while we were in there:
- Reload from disk (BL-2519, BL-2520).
bx:schedule action="reload" rebuilds a scheduler from the tasks file, and the new scheduler.reloadOnChange setting reloads tasks when the file changes
- Late cron ticks no longer vanish. A tick queued behind other work now fires, and logs a warning with a thread-count hint when the executor is saturated
- Constraints use the due time, so a late tick is not skipped by crossing midnight (BL-2838)
- Executor sizing honors your config. It was always 10
- Monthly tasks on the 31st now clamp to the last day of shorter months instead of running daily (BL-2698)
Stop writing retry loops: HTTP retry 🔁
Calls to other services fail for reasons that go away on their own: a rate limit, a busy gateway, a slow response. Until now every team wrote the same retry loop, with the same bugs. In 1.20 (BL-2841) bx:http and the http() BIF retry transient failures for you. Retry is off until you ask for it, so nothing changes for existing code.

One call is enough to get started:
result = http( "https://api.example.com/data" ).withRetry( 3 ).send()
Need more control? Pass a struct and watch each attempt:
result = http( "https://api.example.com/data" )
.withRetry( {
times : 5,
delay : 1,
backoff : "exponential",
maxDelay : 30
} )
.onRetry( ( attempt, httpResult, waitSeconds ) => println( "Attempt #attempt# failed, waiting #waitSeconds#s" ) )
.send()
println( "Succeeded after #result.retryCount# retries" )
What you get:
- Sensible defaults. It retries on
408, 429, 502, 503 and 504. Timeouts count as 408 and connection failures as 502. Change the list with withRetryOn() or add your own rule with withRetryWhen()
- Fixed or exponential backoff, with a
maxDelay cap
Retry-After is honored. A wait in seconds or an HTTP date replaces the backoff. If it is longer than retryMaxDelay, BoxLang stops retrying and returns that response
- Final result only.
onError, onComplete and throwOnError apply to the last attempt, and the result struct gains retryCount
- Streams are safe. A request is never retried once a chunk callback has fired
- Tags too.
bx:http takes retry, retryDelay, retryOn, retryBackoff, retryMaxDelay, retryWhen and onRetry
Live process output and cancellation ⏯️
systemExecute() could already handle timeouts, working directories, environment overrides and output capture. BL-2809 covers the interactive case. Stream every line as it arrives, merge stderr into one live log, and cancel a runaway process cleanly.
jobId = createUUID()
application.jobs[ jobId ] = { cancelRequested : false }
result = systemExecute(
name = "ffmpeg",
arguments = [ "-i", "input.mp4", "output.mp4" ],
mergeErrors = true,
onLine = ( line, stream ) => println( line ),
isCancelled = () => application.jobs[ jobId ].cancelRequested
)
if ( result.cancelled ) {
println( "Stopped by the user after: #result.output#" )
}
isCancelled() is polled while the process runs. When it returns true, BoxLang stops the process and everything it started, closes the streams and hands back what was captured so far. A cancellation is its own outcome: it is not a timeout and it is not a failed exit. Nothing changes for existing calls unless you opt in.
Symbolic links, finally first-class 🔗
Blue/green style deploys, shared asset folders and current -> releases/v2 layouts all live on symbolic links. BoxLang 1.20 (BL-2820) brings native support:

base = getTempDirectory() & "deploy"
directoryCreate( base & "/releases/v2" )
fileCreateSymlink( base & "/current", "releases/v2" )
println( fileIsSymlink( base & "/current" ) ) // true
println( fileReadSymlink( base & "/current" ) ) // releases/v2
fileInfo() and getFileInfo() now report isLink and linkTarget, and directoryList() returns the same columns. directoryList(), directoryCopy(), directoryDelete() and bx:directory gain a followLinks argument that defaults to false.
That default is a security decision too (BL-2818). directoryDelete( path, true ) used to follow links and empty the folders they pointed to. Not anymore:
// Safe: the link is removed, the shared folder is untouched
directoryDelete( build, true )
// Opt in: the shared folder is emptied too
directoryDelete( build, true, true )
Even with followLinks=true, a link that leads back into the folder being deleted is removed as a link, so cycles can never loop or delete the folder you are standing in.
Our commitments, in this release 🤝
BoxLang is the software productivity platform for building, modernizing and running applications. 1.20 shows what that promise means in practice.
- Drop-in for CFML. Your Adobe ColdFusion and Lucee code runs with no code changes through the
bx-compat-cfml module. 1.20 keeps closing gaps: cfimport with taglib and prefix loads a directory of custom tags (BL-2722), cfzip action="list" returns a query (BL-2811), getPageContext().getRequest() returns the real servlet request (BL-2812), ImageRotate() matches Lucee and Adobe argument order (BL-2825), and serializeJSON( qry["col"] ) works as it does on Adobe (BL-2793)
- Security first. A URL or form parameter named
session, application, client or cffile can no longer replace that scope (BL-2802). External mappings are enforced for remote class requests and the root mapping (BL-2803, BL-2817). Recursive deletes no longer follow symbolic links (BL-2818)
- Fast, and staying fast. Class lookup is now a single hash lookup, so
new and createObject() no longer slow down as your application accumulates classes (BL-2805, BL-2798)
- Resilient by default. Transient HTTP failures, late cron ticks, crashed cluster nodes and cancelled processes are now handled by the platform, so you stop hand-rolling the same safety nets in every project
- Free and open. The BoxLang core is Apache 2.0. BoxLang+ is not priced by CPU cores, RAM, nodes or traffic, developer machines never count, and every BoxLang+ module includes a 60 day free trial. Estimate your own cost with the BoxLang calculator
- Correctness you can trust.
finally now runs when break or continue leaves a try (BL-2804), 19-digit integer literals compile (BL-2826), and queries over 1,048,576 rows no longer lose rows (BL-2717)
Moving to BoxLang? Meet the Migration Assistant 🧭
Everything above is easier to enjoy once you are on BoxLang. So we built the easy button.
The BoxLang Migration Assistant is a free desktop app that checks, audits and runs your Adobe ColdFusion or Lucee application on BoxLang, then builds your migration plan. Point it at your app folder and it walks you through every step. Your code never leaves your computer, and nothing is committed for you.

- Choose your app. It detects the engine from
server.json (for example adobe@2023 or lucee@5), counts source files, and finds git, box.json and any CFConfig file
- Compile check. Every
.cfm and .cfc is parsed with the real BoxLang compiler, the same check as boxlang check. Failures come with the line, the surrounding code and a fix prompt for your own LLM
- Compatibility audit. The CFML Feature Audit runs across your whole app and returns a compatibility score, the modules you need, and every feature with no BoxLang equivalent, with files and lines
- Server settings. Point CommandBox at your CFConfig export so datasources, mail servers and mappings come along, or start from a generated
.boxlang.json
- Generate files. Preview, then write
server.json, box.json, MIGRATION.md, AGENTS.md and the BoxLang migration skills for your AI coding agent, to a new git branch, your app folder or a copy
- Test it. One click starts your app on BoxLang through CommandBox and tells you when it answers
- Your migration plan. A checklist with status, steps, acceptance criteria and effort sizes, a Jira CSV and GitHub issues, one AI prompt that fixes the open items in order, and a management report you can save as a PDF
It runs on macOS (Apple Silicon), Windows (x64 and ARM) and Linux (x64 and ARM), and ships with its own Java runtime and BoxLang server, so there is nothing else to install. Prefer the command line? The same tools are yours: boxlang check, the CFML Feature Audit and the CFML Transpiler.
# Syntax and compile check across your app
boxlang check
# Install the CFML compatibility module on a CommandBox server
install bx-compat-cfml
Proof at scale: the U.S. Small Business Administration 🏛️
Big migrations are won on trust, and trust comes from real production systems. The U.S. Small Business Administration (SBA) moved from Adobe ColdFusion to BoxLang in about five months, across more than four million lines of code.

Four million lines. Government scale. Production-critical environments. No ground-up rewrite, and no multi-year program that never lands. That is the BoxLang promise made real: keep your investment in the code you have, shed the licensing lock-in, and modernize on a timeline a project plan can actually hold.
[SBA QUOTE PLACEHOLDER: add an approved quote from the SBA team here, with name, title and permission to publish]
Your application is different from theirs, but the path is the same: audit, run, fix what the audit finds, and ship. The Migration Assistant gives you that path as a checklist on day one.
Upgrading to 1.20: read this first ⚠️
1.20 is a drop-in upgrade for most apps. A few changes deserve a look before you roll it out:
- Clustered tasks require clustering (breaking). A clustered task on a node with
cluster.enabled=false now fails to start instead of running on every node. Enable the cluster block, or set the task's cluster to false
- Tasks inherit
scheduler.clusterTasks. With clustering enabled it defaults to true, so unset tasks become clustered. Set cluster to false per task, or set scheduler.clusterTasks to false to make clustering opt-in
scheduler.cacheName is deprecated. Use cluster.cacheName
Struct.putIfAbsent (BL-2808) is atomic and returns the existing value when the key is present, not null. Check for null if you treated a non-null return as "inserted"
- Scheduler executor size now follows the
threads of the executor named by scheduler.executor. Set threads explicitly if you relied on 10
- Symbolic links.
directoryDelete( path, true ) removes links as links, and directoryCopy() copies links as links. Pass followLinks=true for the old behavior
systemExecute() results gain a cancelled key, which matters if you iterate over result keys
- Launchers.
BOX_PROCESS_PATH is replaced by BOXLANG_PROCESS_PATH
- HTTP retry is opt in, so existing
bx:http and http() calls behave exactly as before
The complete list is in the 1.20.0 release notes.
Get started
Download BoxLang 1.20.0 from boxlang.io, read the release notes, and if you are coming from Adobe ColdFusion or Lucee, start with the Migration Assistant.
Resources
Run it once. Run it everywhere. Run it on BoxLang.
Add Your Comment