MCPcopy
hub / github.com/simstudioai/sim / activeJobCondition

Function activeJobCondition

apps/sim/lib/workflows/schedules/orchestration.ts:93–99  ·  view source on GitHub ↗
(jobId: string, workspaceId: string)

Source from the content-addressed store, hash-verified

91}
92
93const activeJobCondition = (jobId: string, workspaceId: string) =>
94 and(
95 eq(workflowSchedule.id, jobId),
96 eq(workflowSchedule.sourceWorkspaceId, workspaceId),
97 eq(workflowSchedule.sourceType, 'job'),
98 isNull(workflowSchedule.archivedAt)
99 )
100
101function parseOneTimeRun(time: string, timezone: string): Date | null {
102 let timeStr = time

Callers 4

performUpdateJobFunction · 0.85
performExcludeOccurrenceFunction · 0.85
performDeleteJobFunction · 0.85
performCompleteJobFunction · 0.85

Calls 1

eqFunction · 0.50

Tested by

no test coverage detected