- POST /assets/generate-rpg-background now returns immediately with a task_id, runs generation in a background thread - Added GET /assets/generate-rpg-background/poll?task_id=xxx for frontend to poll completion status - Frontend polls every 3s with elapsed time display - Prevents Cloudflare's 100s timeout from killing the connection - Also extracted shared error handling into _handleGenError()
13 lines
210 B
JSON
13 lines
210 B
JSON
{
|
|
"keys": [
|
|
{
|
|
"key": "ocj_example_team_01",
|
|
"used": false,
|
|
"reusable": true,
|
|
"maxConcurrent": 3,
|
|
"usedBy": null,
|
|
"usedByAgentId": null,
|
|
"usedAt": null
|
|
}
|
|
]
|
|
} |