Not loaded · from iris-dev
Ensures InterSystems IRIS data persists across container restarts by running 'iris stop IRIS quietly' before 'docker stop'. Prevents WIJ corruption and data loss.
Claude Code won't load this skill
It ships in iris-dev at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
docker stop sends SIGTERM then SIGKILL after the grace period. IRIS does not trap SIGTERM in its default entrypoint. Docker kills it. The WIJ (write image journal — IRIS's write buffer) is not flushed. On restart, IRIS runs journal recovery which takes 30-300 seconds. Uncommitted in-flight writes are lost.
Symptom: After docker stop + docker start, tables exist (schema survived) but rows are 0.
This is silent — no error, no warning, IRIS starts cleanly, data appears empty.
iris stop IRIS quietly Before docker stopdocker exec <container> iris stop IRIS quietly
docker stop <container>
This flushes the WIJ, checkpoints globals, and marks the database clean. Next start is instant.
services:
iris:
image: intersystemsdc/iris-community:latest
stop_grace_period: 60s # Give docker stop 60s before SIGKILL
# Note: stop_grace_period alone is NOT enough — IRIS doesn't trap SIGTERM.
# You must also run 'iris stop IRIS quietly' before 'docker compose down'.
Shutdown script (create as scripts/stop-iris.sh):
#!/bin/bash
CONTAINER="${1:-iris}"
docker exec "$CONTAINER" iris stop IRIS quietly
docker stop "$CONTAINER"
IRISContainer.__exit__() now calls stop_gracefully() automatically:
with IRISContainer.community() as iris:
conn = iris.get_connection()
# ... do work ...
# __exit__ calls iris stop IRIS quietly before docker stop
stop_gracefully() is also callable directly:
iris.stop_gracefully() # Returns True on success, False if container not running
docker stop container # Safe to call after
| Approach | Does it prevent data loss? | Why |
|---|---|---|
stop_grace_period: 60s | ❌ | IRIS doesn't trap SIGTERM by default |
stop_signal: SIGUSR1 | ❌ | IRIS ignores SIGUSR1/SIGUSR2 |
iris stop IRIS quietly via exec | ✅ | Explicit graceful shutdown with WIJ flush |
| Custom entrypoint that traps SIGTERM | ✅ | Intercepts SIGTERM → runs iris stop → exits |
For docker-compose without manual pre-stop:
#!/bin/sh
# graceful-iris-entrypoint.sh
/iris-main &
IRIS_PID=$!
trap 'iris stop IRIS quietly; wait $IRIS_PID' SIGTERM INT TERM
wait $IRIS_PID
services:
iris:
entrypoint: ["/bin/sh", "/graceful-iris-entrypoint.sh"]
stop_grace_period: 60s
volumes:
- ./graceful-iris-entrypoint.sh:/graceful-iris-entrypoint.sh:ro
Note: This conflicts with the standard IRIS -b/-a hook mechanism. Use only if you don't need pre/post hooks.
lifecycle:
preStop:
exec:
command: ["iris", "stop", "IRIS", "quietly"]
terminationGracePeriodSeconds: 60
# After restart, check WIJ state at startup
docker logs <container> 2>&1 | grep -i "wij\|journal\|recover\|dirty\|clean"
# Clean startup: "Journal startup: WIJ is clean"
# Recovery needed: "Journal startup: WIJ recovery in progress"
Recovery after dirty stop is not data loss — it's slow. If rows are missing after recovery, the writes were not committed before the kill.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub intersystems-community/iris-agentic-dev --plugin iris-dev40 skills in this plugin
/ensemble-productionManage and observe IRIS Interoperability productions — lifecycle, logs, queues, and message tracing. Covers pyprod Python API, ObjectScript Ens.Director, and MCP tool flow./iris-agentic-devConfigure, connect, and troubleshoot the iris-agentic-dev MCP server (iris_execute/iris_query/iris_doc/docs_introspect/kb/etc.) against an IRIS container or instance. Use when its tools return IRIS_UNREACHABLE, when pointing it at a new IRIS, or when a connection edit "isn't taking effect." Covers the .iris-agentic-dev.toml config, live file-watch reload, the OrbStack port-discovery gotcha, and the docker-exec fallback./iris-agentic-dev-setupInstall the iris-agentic-dev binary, get an IRIS instance running, and register the MCP server. Use when the IRIS tools are missing, when check_config reports disconnected, or when the user asks to set up, install, or connect iris-agentic-dev./iris-ai-hubIRIS AI Hub (%AI.* classes, EAP builds): where the upstream docs are and which file covers what, how to check them against the installed build, and the %AI.Agent / %AI.Tool / %AI.ToolSet / ConfigStore / Wallet / MCP server facts measured on 2026.3.0AI builds 139 and 154. Load when building or debugging AI Hub agents, tools, providers or MCP servers./iris-connectivityUse when connecting to IRIS from Python, Java, JDBC, ODBC, or any external language. IRIS connection APIs have specific package names, port numbers, and syntax that differ from every other database./iris-coverage-runMeasure ObjectScript line coverage using %Monitor.System.LineByLine. Wraps a %UnitTest.Manager.RunTest() call, collects per-class hit/total counts, prints a coverage table. Prerequisite: iris-coverage-setup (bbsiz=4096, IRIS restarted).Other plugins' skills for the same job