MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / hasJobSchedule

Function hasJobSchedule

src/job-schedule.ts:12–20  ·  view source on GitHub ↗
(
  jobOrCron: Pick<ScheduledJobConfig, "cron"> | string | undefined | null,
)

Source from the content-addressed store, hash-verified

10}
11
12export function hasJobSchedule(
13 jobOrCron: Pick<ScheduledJobConfig, "cron"> | string | undefined | null,
14): boolean {
15 if (typeof jobOrCron === "string" || jobOrCron == null) {
16 return !!normalizeJobCron(jobOrCron);
17 }
18
19 return !!normalizeJobCron(jobOrCron.cron);
20}

Callers 1

isRecurringJobFunction · 0.85

Calls 1

normalizeJobCronFunction · 0.85

Tested by

no test coverage detected