http://coldbox.org/index.cfm/download
Enjoy!
Recent Entries
I’ve been heads-down on clustering support for BoxLang, and the first feature to ride on top of it is the task scheduler. If you run more than one BoxLang server, you can now mark a scheduled task as clustered and each occurrence of that task runs on one node instead of on every node at once.

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

{hostname}-{pid} by default, or the nodeId you set when your platform gives you a stable pod or task namecluster.name see each other. Different names never do, so one shared cache can serve several clustersFileSystemStore on a shared volumeThe 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 elsegetNode( nodeId ) returns one record, and getNodeAttribute( nodeId, path, default ) returns one value by dotted pathgetNodeNavigator( nodeId ) wraps a record for chaining, and getClusterReport() gives a diagnostic view of the node id, cluster name, cache, mode, attributes and known nodesObject 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.
bxcluster:{cluster}:, and each feature owns its own segment beneath itTurn 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"
}
}
}
}
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:
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 jobabandoned and the next occurrence runs normallyscheduler.logrun to allow overlaponOneServer() 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:
bx:schedule action="reload" rebuilds a scheduler from the tasks file, and the new scheduler.reloadOnChange setting reloads tasks when the file changesCalls 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:
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()maxDelay capRetry-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 responseonError, onComplete and throwOnError apply to the last attempt, and the result struct gains retryCountbx:http takes retry, retryDelay, retryOn, retryBackoff, retryMaxDelay, retryWhen and onRetrysystemExecute() 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.
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.
BoxLang is the software productivity platform for building, modernizing and running applications. 1.20 shows what that promise means in practice.
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)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)new and createObject() no longer slow down as your application accumulates classes (BL-2805, BL-2798)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)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.

server.json (for example adobe@2023 or lucee@5), counts source files, and finds git, box.json and any CFConfig file.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.boxlang.jsonserver.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 copyIt 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
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.
1.20 is a drop-in upgrade for most apps. A few changes deserve a look before you roll it out:
cluster.enabled=false now fails to start instead of running on every node. Enable the cluster block, or set the task's cluster to falsescheduler.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-inscheduler.cacheName is deprecated. Use cluster.cacheNameStruct.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"threads of the executor named by scheduler.executor. Set threads explicitly if you relied on 10directoryDelete( path, true ) removes links as links, and directoryCopy() copies links as links. Pass followLinks=true for the old behaviorsystemExecute() results gain a cancelled key, which matters if you iterate over result keysBOX_PROCESS_PATH is replaced by BOXLANG_PROCESS_PATHbx:http and http() calls behave exactly as beforeThe complete list is in the 1.20.0 release notes.
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.
Run it once. Run it everywhere. Run it on BoxLang.
That ColdFusion or Lucee upgrade keeps slipping, and the same production issues keep taking time out of your sprint. See how Ortus Consulting and Professional Support can help you make room for both.
Add Your Comment