Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { schedule } from 'midway';
@schedule({
type: 'all',
interval: 1000,
})
export default class TestCron {
async exec(ctx) {
ctx.logger.info('hello world');
}
}