example.js 308 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const Subscription = require('egg').Subscription;
  3. /**
  4. * test
  5. */
  6. class Test extends Subscription {
  7. static get schedule() {
  8. return {
  9. interval: '360m',
  10. type: 'worker',
  11. immediate: false,
  12. disable: true,
  13. };
  14. }
  15. async subscribe() {}
  16. }
  17. module.exports = Test;