[Support]
#4299
Replies: 2 comments
-
恩,是个 bug,不应该拿 name 的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
v3.20.3 已处理 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem(描述问题)
@job('syncJob', {
cronTime: '*/2 * * * * *', // 每隔 2s 执行
})
export class DataSyncCheckerJob implements IJob {
async onTick() {
// ...
}
}
然后把下面的代码 control 里面
const syncJob = this.cronFramework.getJob(DataSyncCheckerJob);
console.log('syncJob', syncJob);
Midway Versions(Midway 版本)
✓ @midwayjs/faas-typings(not installed)
✓ @midwayjs/fc-starter(not installed)
✓ @midwayjs/serverless-http-parser(not installed)
✓ @midwayjs/async-hooks-context-manager(3.20.0)
✓ @midwayjs/axios(3.20.0)
✓ @midwayjs/bootstrap(3.20.0)
✓ @midwayjs/bull(3.20.0)
✓ @midwayjs/bull-board(not installed)
✓ @midwayjs/bullmq(not installed)
✓ @midwayjs/busboy(not installed)
✓ @midwayjs/cache-manager(3.20.0)
✓ @midwayjs/captcha(3.20.0)
✓ @midwayjs/casbin(not installed)
✓ @midwayjs/casbin-redis-adapter(not installed)
✓ @midwayjs/casbin-typeorm-adapter(not installed)
✓ @midwayjs/code-dye(not installed)
✓ @midwayjs/consul(not installed)
✓ @midwayjs/core(3.20.0)
✓ @midwayjs/cos(not installed)
✓ @midwayjs/cron(3.20.0)
✓ @midwayjs/cross-domain(3.20.0)
✓ @midwayjs/decorator(3.20.0)
✓ @midwayjs/etcd(not installed)
✓ @midwayjs/express-session(not installed)
✓ @midwayjs/faas(not installed)
✓ @midwayjs/grpc(not installed)
✓ @midwayjs/http-proxy(not installed)
✓ @midwayjs/i18n(3.20.0)
✓ @midwayjs/info(3.20.0)
✓ @midwayjs/jwt(not installed)
✓ @midwayjs/kafka(not installed)
✓ @midwayjs/leoric(not installed)
✓ @midwayjs/mikro(not installed)
✓ @midwayjs/mock(3.20.0)
✓ @midwayjs/mongoose(not installed)
✓ @midwayjs/mqtt(not installed)
✓ @midwayjs/oss(not installed)
✓ @midwayjs/otel(not installed)
✓ @midwayjs/passport(not installed)
✓ @midwayjs/process-agent(not installed)
✓ @midwayjs/prometheus(not installed)
✓ @midwayjs/prometheus-socket-io(not installed)
✓ @midwayjs/rabbitmq(not installed)
✓ @midwayjs/redis(3.20.0)
✓ @midwayjs/security(3.20.0)
✓ @midwayjs/sequelize(3.20.0)
✓ @midwayjs/session(3.20.0)
✓ @midwayjs/socketio(not installed)
✓ @midwayjs/static-file(3.20.0)
✓ @midwayjs/swagger(not installed)
✓ @midwayjs/tablestore(not installed)
✓ @midwayjs/tags(not installed)
✓ @midwayjs/tenant(not installed)
✓ @midwayjs/typegoose(not installed)
✓ @midwayjs/typeorm(not installed)
✓ @midwayjs/upload(3.20.0)
✓ @midwayjs/validate(3.20.0)
✖ @midwayjs/version(current: 3.18.2, allow: ["3.20.0","3.20.1"])
✖ @midwayjs/view(current: 3.20.2, allow: ["3.20.0"])
✓ @midwayjs/view-ejs(not installed)
✓ @midwayjs/view-nunjucks(3.20.0)
✓ @midwayjs/web(not installed)
✓ @midwayjs/express(not installed)
✓ @midwayjs/koa(3.20.0)
✓ @midwayjs/ws(not installed)
Beta Was this translation helpful? Give feedback.
All reactions