main
| 1 | import { MedusaContainer } from "@medusajs/framework/types" |
| 2 | import { defineFileConfig, FeatureFlag } from "@medusajs/framework/utils" |
| 3 | |
| 4 | export const testJobHandler = jest.fn() |
| 5 | |
| 6 | export default async function greetingJob(container: MedusaContainer) { |
| 7 | testJobHandler() |
| 8 | } |
| 9 | |
| 10 | export const config = { |
| 11 | name: "greeting-every-second", |
| 12 | numberOfExecutions: 1, |
| 13 | schedule: "* * * * * *", |
| 14 | } |
| 15 | |
| 16 | defineFileConfig({ |
| 17 | isDisabled: () => !FeatureFlag.isFeatureEnabled("custom_ff"), |
| 18 | }) |