{"ref":"content:agentic-ai-on-btp-running-your-agents-unattended-on-a-schedule","page":"/content/agentic-ai-on-btp-running-your-agents-unattended-on-a-schedule","json":"/content/agentic-ai-on-btp-running-your-agents-unattended-on-a-schedule.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"agentic-ai-on-btp-running-your-agents-unattended-on-a-schedule","title":"Agentic AI on BTP: Running Your Agents Unattended on a Schedule","url":"https://community.sap.com/t5/technology-blog-posts-by-members/agentic-ai-on-btp-running-your-agents-unattended-on-a-schedule/ba-p/14493817","content_type":"blog","published_on":"source:sap-community","explains":["capability:job-scheduling"],"summary":"Exposes an agent from the Pydantic AI rewrite in [Agentic AI on BTP: a Multi‑Agent App with Pydantic AI](content:agentic-ai-on-btp-a-multi-agent-app-with-pydantic-ai) as a scope-protected `POST /api/agents/{slug}/run` endpoint that the [SAP Job Scheduling Service](artifact:btp-job-scheduling) calls on a cron schedule instead of a person opening the chat, answering 202 Accepted at once and finishing the run in a background task to stay inside the platform's 15-second budget. Because there is no signed-in user at 03:00, the job borrows a stored OAuth token from a service account named in a \"Run as principal\" field, with two separate preflight checks distinguishing no principal configured from a credential that has gone stale. A dedicated scope in `xs-security.json`, granted to the job-scheduler service instance with `grant-as-authority-to-apps`, protects the endpoint instead of the approuter, which only deploys correctly if that service is declared before [XSUAA](artifact:btp-authorization-and-trust-management) in `mta.yaml`.","authors":["actor:lemaiwo"],"published":"2026-09-29","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"agentic-ai-tag"},{"source":"source:sap-community","channel":"btp-tag"}],"first_seen":"2026-11-10"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"good","evidence":"published 2 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2026-09-29"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":null,"unit":"views"},{"value":null,"unit":"comments"},{"value":null,"unit":"likes"}]},"signals":null,"series":null,"edges":{"authors":[{"ref":"actor:lemaiwo","name":"Wouter Lemaire","json":"/actors/lemaiwo.json"}]}}