04 Rules and limits

- Slots: 6 jobs in total across all plugins. When full: 503 {"error":"job queue full"}. Finished jobs are recycled oldest-first, so poll promptly.
- plugin name: < 24 chars, the plugin's folder name
- action name: < 24 chars, only A-Z a-z 0-9 _ - .
- args: < 192 bytes of JSON
- result: < 192 bytes of JSON. If bigger, the result is replaced with {"error":"result too large"} (the state stays done). Return a path or id, not data. Write big results to SD.
- States: pending -> running -> done / error; unknown = never existed or slot recycled
- Executor polling: every 2.5 s, one job at a time per page
- Crashed executor: a running job goes back to pending after 10 minutes
- Plugins disabled: all job endpoints answer 403
- Reader not in File Transfer mode: no web server, so nothing works

Bad requests get 400 {"error":"bad plugin/action/args"}.
‹ PreviousReader file (.txt)Next ›