MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / enqueueCohortCompute

Function enqueueCohortCompute

packages/db/src/services/cohort.service.ts:602–612  ·  view source on GitHub ↗
(cohortId: string)

Source from the content-addressed store, hash-verified

600}
601
602export async function enqueueCohortCompute(cohortId: string): Promise<void> {
603 await cohortComputeQueue.add(
604 'cohortCompute',
605 { cohortId },
606 {
607 jobId: `cohort-${cohortId}`,
608 removeOnComplete: { age: 3600 },
609 removeOnFail: { age: 86400 },
610 },
611 );
612}
613
614export async function removeCohortComputeJob(cohortId: string): Promise<void> {
615 await cohortComputeQueue.remove(

Callers 1

cohort.tsFile · 0.90

Calls 1

addMethod · 0.45

Tested by

no test coverage detected