godcrm/backend/services/AgentJobService.js
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

31 lines
805 B
JavaScript

/**
* AgentJobService — Async Agent Job Queue
*
* Split into modules under ./agent-job/:
* - shared.js — constants, helpers, job status update functions
* - create.js — createAndDispatchJob, processJobLocally
* - query.js — getJob, getJobByUuid, getPendingJobs, etc.
* - webhook.js — handleWebhookResult
* - lifecycle.js — cancelJob, recoverStuckJobs, shutdown state
* - index.js — barrel re-export
*/
export {
default,
createAndDispatchJob,
getJob,
getJobByUuid,
getPendingJobs,
getJobsForConversation,
getStalledJobs,
handleWebhookResult,
cancelJob,
recoverStuckJobs,
setShuttingDown,
isShuttingDown,
startJobWatchdog,
stopJobWatchdog,
JOB_STATUS,
JOB_TIMEOUT_MS,
mapTodoStatus,
} from './agent-job/index.js';