Frontend Feature add on Dagster

This commit is contained in:
sriram
2026-08-29 14:51:10 +05:30
parent 8efff41226
commit 80daf30a42
5 changed files with 554 additions and 5 deletions

View File

@@ -385,10 +385,17 @@ export const api = {
// calls - a colleague hits it with an X-API-Key from a script.
listInbox: () => request('/api/admin/catalog-batch/inbox'),
startBatchFromInbox: (fileIds, { use_llm = false, fetch_images = false } = {}) =>
// `runner` picks the executor: 'inprocess' (this container's worker thread,
// the default and the only one that exists in production) or 'dagster'
// (staged and left for the orchestrator to claim). See InboxStartRequest in
// app/api/routers/batch_catalog.py.
startBatchFromInbox: (
fileIds,
{ use_llm = false, fetch_images = false, runner = 'inprocess' } = {},
) =>
request('/api/admin/catalog-batch/from-inbox', {
method: 'POST',
body: JSON.stringify({ file_ids: fileIds, use_llm, fetch_images }),
body: JSON.stringify({ file_ids: fileIds, use_llm, fetch_images, runner }),
}),
dismissInboxFiles: (fileIds) =>