When hot loading custom Shuffle apps saves a restart and when it does not
Hot loading saves a restart when a team is developing or testing an in-house Python app and wants a running self-hosted Shuffle to pick up code changes without taking the stack down. Picture a security team with a Python app that queries an internal asset register. They copy the app into the shuffle-apps folder on the Shuffle host, enable the hot load setting, and run the reload step so the platform reads the new code. Those three elements are the whole mechanism: a folder the platform reads, a setting that allows it, and an explicit reload. The exact folder path and setting name depend on your install, so confirm them in the Shuffle configuration docs before you plan around them. Treat hot loading as a development convenience, not as a release method.
Versioned containers are the alternative. The Shuffle apps documentation describes apps as versioned Docker containers, so each release has an image tag that a reviewer can name, scan and roll back to. That matters when the app holds access to an internal system and an auditor asks which code ran during a given execution. Hot loading gives fast iteration in a lab or test instance, where a few analysts use the app and a broken change costs little. It becomes the weaker choice once more people depend on the app, because each reload changes behavior for every workflow that calls it and leaves no release record. Decide early whether the app is a prototype or a product, since that decision sets the packaging path.
Hot loading does not remove the need to update workflows. After an app changes, the actions your playbooks call may have new parameters or outputs, and a workflow that ran yesterday can fail on its next run. Before you reload anything in a production or multi-node environment, confirm three things in your own setup: that every Orborus node that runs executions sees the same app code, that the reload reaches all of them, and that saved app authentications still resolve, which depends on SHUFFLE_ENCRYPTION_MODIFIER staying unchanged. The configuration docs recommend more than one Orborus node for high availability, so a reload that reaches only one node can produce executions that behave differently depending on where they run. Ask your implementer how the folder is kept in sync and who approves a reload in production.
How a Python app moves from folder to running workflow step
The path starts with an app directory in the shuffle-apps folder, which the backend picks up once hot load is enabled and the reload step runs. Orborus polls the backend for jobs, and when a workflow execution starts, it launches a worker that starts the app container. Saved credentials are encrypted in OpenSearch with the SHUFFLE_ENCRYPTION_MODIFIER secret, so check that secret before you rely on stored authentication. A changed app does not update workflows already built on it, so review each workflow step after a reload.
Path from an app folder to a running workflow step, with credential and update checkpoints.
Hot load options and when each fits
This table compares the hot load setting, the reload step, the folder-based and container-based paths, and full restarts across development, test and production. Read each row as a trade-off between speed of change and traceability. The main takeaway is that hot loading suits iteration, while versioned containers suit anything other people or auditors depend on.
| Option | What it changes | When it fits | What to confirm |
|---|---|---|---|
| Hot load on, shuffle-apps folder | Python apps placed in the folder are picked up without restarting the backend | Local development and early testing, where an app changes many times a day | The setting name and folder path for your version in the configuration docs |
| Hot load off, versioned container | Apps run only from images you build, tag and deploy | Production, where each change needs a known version and a review trail | How your version resolves app images and which registry it pulls from |
| Reload step | Refreshes the app list after a folder change so new code is visible | Iterating on one app during development or test | Whether saved workflows use the reloaded version or need editing |
| Full restart | Restarts the backend and runtime so every setting and app is read again | After changing environment variables, image tags or the hot load setting | Running executions first, since a restart can interrupt them |
| Development | Hot load on, folder edits, reload after each change | Fastest feedback, kept on a local or dedicated instance | That the dev instance has no production credentials |
| Test | Hot load on or a versioned image, run against copies of workflows | Checking changed actions against representative inputs before promotion | That test runs use the same runtime settings as production |
| Production | Versioned container, hot load off, planned restart window | Changes that need pinning, review and a rollback to a known version | The rollback path for your deployment, Docker Compose or Helm |
Setting up hot loading for a custom Python app
This sequence takes an in-house Python app from a local folder to a loaded, authenticated app in a self-hosted Shuffle instance without a full restart. Each step ends with a check, so you know the app is ready before any workflow depends on it.
Prepare the app directory
The developer creates a directory for the app containing
api.yamlfor the app definition andapp.pyfor the action code, plus any dependency file the app needs. Run the Python file locally to catch syntax errors, and check that the app name and version inapi.yamlmatch what you intend to release. The step is done when the directory contains both required files and the local run completes without errors.Place the app in the shuffle-apps folder
Copy the app directory into the
shuffle-appsfolder that your deployment exposes to the Shuffle backend. The exact host path depends on how you installed Shuffle, so confirm the mount in your Compose or Helm configuration first. Then list the folder from inside the backend container to confirm the directory is visible. The step is done when the app directory appears at the expected path inside the container.Enable the hot load setting
An administrator turns on the hot load option in the Shuffle configuration. Confirm the exact setting name and where it is set for your version in the configuration documentation, because the key depends on your deployment method. If your version reads the setting only at startup, restart the backend once and record that restart as a one-time change. The step is done when the setting is active and the backend logs show it was read.
Run the reload step
Trigger the reload from the Shuffle interface or the API so the backend scans the
shuffle-appsfolder for new or changed apps. Watch the backend logs during the reload for parse errors or messages about the new app. Reloading again after a later edit is the same action, so note the procedure in your runbook. The step is done when the logs report the app as loaded with no errors.Confirm the app and its actions
Open the apps list in Shuffle, find the app by name, and check that its version matches the version in
api.yaml. Compare the listed actions with the functions defined inapp.pyand the endpoints in your app definition. A missing action usually means a naming or parsing problem in the definition, so fix it and reload. The step is done when the version and the full action list match what you built.Authenticate the app and run a test action
Add the app's credentials or API key in the authentication settings, then run one read-only action from a test workflow. Shuffle stores saved authentications encrypted, so confirm that
SHUFFLE_ENCRYPTION_MODIFIERis set and backed up before you save any credential. Review the execution result for the expected response. The step is done when the test action returns the expected data without an authentication error.
Updating workflows after a custom app changes
A change to a custom app does not automatically update the workflows that already use it. Shuffle apps run as versioned Docker containers, so a workflow calls a specific app version, and an action that was renamed, removed or given new required parameters can leave a playbook that still looks saved but fails when it runs. Before you change the app, confirm in your own install how the workflow editor handles an action that no longer matches its definition: whether it keeps the old reference, flags the step, or makes you reselect the action. Also confirm which app version a workflow calls after the hot load and reload, because that behavior determines whether you can run old and new versions side by side. The Shuffle apps documentation describes the versioned container model, but the exact editor behavior should be checked on your release.
Start with an inventory. Search your workflows for the app name and list every action and parameter each one uses from that app. Compare that list with the changed app definition and mark each step as unchanged, changed or broken. Make the updates on a non-production instance, or in a copy of the affected workflows, and run each one manually with representative input. Compare the outputs and the downstream steps with the results from the previous version, not just whether the run finishes. Pay particular attention to branches, loops and steps that parse fields from an action's response, because a renamed output field can pass silently and send wrong data onward. Keep the previous app version available until every affected workflow has passed, so you have a rollback path if production behaves differently.
Plan for the costs and secrets that testing touches. On a licensed instance, the pricing model counts app runs, meaning actions that actually execute, so every test run of an affected workflow draws on the same allowance as production. Skipped actions and triggers are not counted, so design test inputs that exercise the steps you changed. Do not change the SHUFFLE_ENCRYPTION_MODIFIER value to make a test pass. The configuration documentation warns that losing or changing it breaks all saved app authentications. If your app change also alters authentication fields, verify that existing saved credentials still work with the new definition before you move any workflow to production, and confirm the exact pricing terms for your edition with the Shuffle pricing article.
Security risks of loading app code at runtime
Hot loading means code from a folder becomes executable inside your automation platform without a restart. The cards below cover the trust decisions that connect the app source, the folder that holds it, the credentials the apps use and the container runtime that runs them.
Code provenance of in-house apps
An app loaded from the shuffle-apps folder runs with access to every credential its workflows can reach, so its origin matters as much as its logic. Confirm who wrote each app, which repository or review process it came from, and that the deployed version matches the reviewed commit. Keep a record of the source revision for each app version so you can show what ran during an incident.
Write access to the apps folder
Anyone who can write to the shuffle-apps folder on the server can add or replace app code that Shuffle will pick up, so the folder is effectively a deployment channel. Restrict write permissions to the deployment account, keep interactive user accounts out of the group that owns it, and log changes made to the folder. Review file ownership after every manual copy, since a loose permission can outlast the change that caused it.
Credential protection under the encryption modifier
Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret. Store that value in your secrets manager, restrict who can read the environment file, and back it up separately from the database. Changing or losing it breaks every saved app authentication, so a hot-loaded app that is rotated or rebuilt on a new server will fail until the value matches.
Docker socket and container trust
Shuffle starts a container for each app run, so the runtime that launches those containers is a privileged component. Access to the Docker socket is equivalent to root on the host, which means a malicious or faulty app image can reach the host if the runtime is misconfigured. Review who can reach the socket, which images the runtime may pull, and whether app containers run with the minimum privileges they need.
Image provenance for app containers
Each hot-loaded app is packaged as a versioned container, so the base image and its dependencies are part of the code you are trusting. Pin base image tags or digests, scan built images for known vulnerabilities, and record which image each app version produced. Confirm with your platform team where images are pulled from before production workflows depend on them.
Questions buyers ask about hot loading Shuffle apps
Does hot loading take less effort than a container release?
Usually yes for each change, because hot loading skips the image build, registry push and redeploy cycle. The effort shifts elsewhere, though. Someone still has to test the changed actions against a live API, check every workflow that calls them and confirm that stored authentications still work. A container release adds packaging steps but gives you a versioned artifact to roll back to. Ask your team or partner to estimate both paths for your app so the comparison uses your own build and test steps, not general assumptions.
Can our team hot load custom Shuffle apps without outside help?
Yes, if the people doing the work can write and debug Python, have administrator access to the Shuffle instance and can test against a non-production copy of it. The harder part is usually not the loading step but deciding which workflows a change affects and proving they still behave correctly. Teams that already run Shuffle in production and have a clear test routine tend to handle this in-house. Teams without a test instance or without anyone who owns the app's code often find outside help faster for the first few apps.
What does hot loading require from our side?
The work needs four things from your side:
- Python skills to write or change the app code and read tracebacks from the worker
- A test Shuffle instance that matches your production version, so results carry over
- API access to the target system, preferably a sandbox or test tenant with test credentials
- A named owner who approves changes and decides when workflows move to the new version
You also need the apps documentation on hand for the expected folder layout and reload steps, which Shuffle maintains in its apps documentation.
How long does hot loading a custom app take?
The duration depends mainly on how many actions the app exposes, how complex its authentication is and how many workflows call it. A single read-only action with an API key is a much smaller job than an app with OAuth2 refresh logic and twenty dependent playbooks. No fixed timeline applies across all apps, so ask for a schedule built from a written scope that lists the actions, the authentication method, the affected workflows and the test cases. Ask who will test each workflow, because testing usually takes longer than the code change.
What drives the cost of hot loading an app up or down?
Cost follows the work, and the work depends on a few factors. Costs rise with the number of actions, the complexity of authentication, the number of workflows that need retesting, limited access to a test instance and the amount of unclear behavior in the target API. Costs fall when the API is well documented, a sandbox is available, the workflows are small and the team has settled naming and ownership rules. When you request a quote, ask what is one-time (building and testing the first version) and what recurs (updates, retesting and support after API changes).
Is hot loading safe to use in production?
It can be, but it carries more risk than a versioned container release because a changed app can affect workflows that are already running or scheduled. Before you hot load into production, confirm how your Shuffle version handles in-flight executions and whether the change takes effect immediately for every workflow. Most teams test the change on a copy of the instance, pin the workflows that depend on the app to known inputs and keep the previous app code ready to restore. Where change control is strict, a container release with a version tag is usually easier to justify to auditors.
What breaks in workflows after a hot-loaded app changes?
The most common breaks are renamed actions, changed parameter names, altered output fields that downstream steps read and authentication settings that no longer match the app's expected fields. Workflows can fail silently if a later step reads an empty value, so tests should check outputs, not only whether the run completes. Also confirm that saved app authentications still decrypt after the change. Shuffle encrypts them with the SHUFFLE_ENCRYPTION_MODIFIER setting, and losing or changing that value breaks every saved authentication, so keep it unchanged throughout the work.
Who maintains the hot-loaded app after the work is done?
Your organization owns the code, the test cases and the decision to change it, whether an internal team or an outside partner built it. Ask for handover documentation that covers the folder layout, the authentication setup, the list of dependent workflows and the test steps for each action. If you want continued help with upgrades, API changes or new actions, DeployOpen offers ongoing support and upgrade work as retainers, and the scope of that retainer is agreed in writing. Agree on who responds when a target API changes without notice before the app goes live.
What a DeployOpen hot loading engagement covers
A DeployOpen hot loading engagement starts with an app inventory: every in-house Python app that must load into the self-hosted Shuffle, the workflows that call each app, the actions and authentications each one exposes, and the owner who approves changes to it. This list decides what the reload procedure has to cover. It also shows which apps can be loaded without touching anything else, and which depend on shared credentials that are encrypted with the SHUFFLE_ENCRYPTION_MODIFIER secret. Ask for the inventory to be written before any setting is changed, because it becomes the baseline for later checks.
The engagement then documents the environment layout: where the shuffle-apps folder sits on each backend host, how the hot load setting is configured in each environment, which hosts run Orborus, and how a change moves from a test instance to production. Where several backends or Orborus nodes run, the layout must show which copy of an app each node is using. Confirm with your platform team how the folder is mounted and who can write to it, since those answers determine who can change running automation.
Testing covers the workflows that depend on each app. For each one, the scope defines the input data, the expected action results and the checks that run after an app changes, including how a workflow that fails after a reload is identified and rolled back. The written handover then records the reload step, the workflow update steps, the rollback path, the access rules for the app folder and the sign-off each change needs. Ask whether the handover will be tested by your own staff on a test instance before the engagement closes, since a procedure nobody has run is hard to trust during an incident.

