trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
8 lines • 415 B
JavaScript
export function formatScheduleWarnings(warnings, separator = "\n") {
const messages = warnings.map((warning) => warning.message);
if (warnings.some((warning) => warning.code === "schedule_default_window")) {
messages.push('Override the default in your task\'s cron config: { pattern: "...", window: "5m" }.');
}
return messages.join(separator);
}
//# sourceMappingURL=scheduleWarnings.js.map