{"name":"@eggjs/tegg-schedule-decorator","version":"4.0.0-beta.7","keywords":["egg","typescript","runtime","tegg"],"author":{"name":"killagu","email":"killa123@126.com"},"license":"MIT","_id":"@eggjs/tegg-schedule-decorator@4.0.0-beta.7","maintainers":[{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"eggjs-admin","email":"fengmk2+eggjs@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"atian25","email":"atian25@qq.com"},{"name":"hyj1991","email":"yeekwanvong@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"coolme200","email":"2001-wms@163.com"},{"name":"akitasummer","email":"akitasummer@outlook.com"}],"homepage":"https://github.com/eggjs/tegg/tree/next/core/schedule-decorator","bugs":{"url":"https://github.com/eggjs/tegg/issues"},"dist":{"shasum":"e55033360e49d4614afffd80e1e3dc2b79084fcd","tarball":"http://registry-npm.ywwl.com/@eggjs/tegg-schedule-decorator/download/@eggjs/tegg-schedule-decorator-4.0.0-beta.7.tgz","fileCount":18,"integrity":"sha512-IJOPsrPiPs4tlzrJcfzyO2eBvRA2xbMfzY6mG44DgfSyu98qm4errR8zomeRahTufgCpdn9Dd/NPr2J3Fy77Ew==","signatures":[{"sig":"MEUCIHJ8u4pfYO4+w5aiJd1sr0riSRAChZxg7DauT0NdqUDUAiEAyB+y+NlM9p1jNeFv5oyYuIObVCYpwRoqp117LYiTgK0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eggjs%2ftegg-schedule-decorator@4.0.0-beta.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10899,"size":3583,"noattachment":false,"key":"/@eggjs/tegg-schedule-decorator/-/@eggjs/tegg-schedule-decorator-4.0.0-beta.7.tgz"},"main":"./dist/index.js","type":"module","_from":"file:eggjs-tegg-schedule-decorator-4.0.0-beta.7.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22.18.0"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"scripts":{"build":"tsdown","clean":"rimraf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f4dabf2d-e0d9-4423-a1a6-fc45f5bc16e4"}},"_resolved":"/tmp/80d927797351700b7ca947469e782294/eggjs-tegg-schedule-decorator-4.0.0-beta.7.tgz","_integrity":"sha512-IJOPsrPiPs4tlzrJcfzyO2eBvRA2xbMfzY6mG44DgfSyu98qm4errR8zomeRahTufgCpdn9Dd/NPr2J3Fy77Ew==","repository":{"url":"git+ssh://git@github.com/eggjs/tegg.git","type":"git","directory":"core/schedule-decorator"},"_npmVersion":"11.6.1","description":"tegg schedule decorator","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@eggjs/tegg-types":"4.0.0-beta.7","@eggjs/core-decorator":"4.0.0-beta.7","@eggjs/tegg-common-util":"4.0.0-beta.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdown":"^0.15.6","typescript":"^5.9.3","@types/node":"^22.10.5","unplugin-unused":"^0.5.3"},"_npmOperationalInternal":{"tmp":"tmp/tegg-schedule-decorator_4.0.0-beta.7_1759585236583_0.5533417513697936","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@eggjs/tegg-schedule-decorator`\n\n## Install\n\n```shell\nnpm i --save @eggjs/tegg-schedule-decorator\n```\n\n## Define schedule subscriber\n\n```ts\nimport { Schedule } from '@eggjs/tegg';\n\n// use number to define schedule interval\n@Schedule<IntervalParams>({\n  type: ScheduleType.WORKER,\n  scheduleData: {\n    // run every 100ms\n    interval: 100,\n  },\n})\nexport class FooSubscriber {\n  @Inject()\n  private readonly logger: EggLogger;\n\n  async subscribe() {\n    this.logger.info('schedule called');\n  }\n}\n\n// use cron to define schedule interval\n@Schedule<CronParams>({\n  type: ScheduleType.WORKER,\n  scheduleData: {\n    cron: '0 0 3 * * *',\n  },\n})\nexport class FooSubscriber {\n  @Inject()\n  private readonly logger: EggLogger;\n\n  async subscribe() {\n    this.logger.info('schedule called');\n  }\n}\n```\n","publish_time":1759585236782,"_cnpm_publish_time":1759585236782,"dist-tags":{"alpha":"3.57.15-alpha.0","beta":"3.73.0-beta.1","beta-v3":"3.74.0-beta.3","latest":"3.88.1"}}