Jmix Run Background Code

Use when writing code that runs outside a user request — a Quartz/scheduled job, an @Async method, an application-startup runner, or an integration event listener. Such threads have no authenticated user, so DataManager fails with "Authentication is not set" the first time the code actually runs. Compile, static analysis, and a green clean test all pass; only the real firing fails.

jmix-framework Updated

File contents

jmix-framework/jmix-agent-toolkit/tree/main/content/skills/jmix-run-background-code commit b855efa463

Frequently asked questions

npx skillmds@latest add jmix-framework/jmix-run-background-code