index.js
function(id, period, callback) {
    var self = this;

    if (this.$resource.cron) {
      if (!this.crons[id]) {
        self._logger.call(self, 'POD:Registering Cron:' + self.getName() + ':' + id);
        self.crons[id] = new self.$resource.cron.CronJob(
          period,
          callback,
          null,
          true,
          self.options.timezone
        );
      }
    }
  }
function(id, period, callback) {
    var self = this;

    if (this.$resource.cron) {
      if (!this.crons[id]) {
        self._logger.call(self, 'POD:Registering Cron:' + self.getName() + ':' + id);
        self.crons[id] = new self.$resource.cron.CronJob(
          period,
          callback,
          null,
          true,
          self.options.timezone
        );
      }
    }
  }
function ( id , period , callback ) { var self = this ; if ( this . $resource . cron ) { if ( ! this . crons [ id ] ) { self . _logger . call ( self , 'POD:Registering Cron:' + self . getName ( ) + ':' + id ) ; self . crons [ id ] = new self . $resource . cron . CronJob ( period , callback , null , true , self . options . timezone ) ; } } }
provide a scheduler service
provide a scheduler service