Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine how to schedule actions in Meteor, e.g. simple cron #82

Closed
2 tasks done
brylie opened this issue Jun 1, 2015 · 3 comments
Closed
2 tasks done

Determine how to schedule actions in Meteor, e.g. simple cron #82

brylie opened this issue Jun 1, 2015 · 3 comments
Assignees
Milestone

Comments

@brylie
Copy link
Contributor

brylie commented Jun 1, 2015

Determine what options are available for scheduling functions in Meteor. Schedule data synchronization between Apinf and API Umbrella, via REST API, using scheduling method.

Definition of done

  • Choose method for scheduling tasks in Meteor
  • Use scheduling method to poll API Umbrella REST API at a given interval
@brylie brylie added the ready label Jun 1, 2015
@bajiat bajiat added this to the Sprint 4 milestone Jun 1, 2015
@frenchbread
Copy link
Contributor

I found a simple cron system that supports supports syncronizing jobs between multiple processes.

Here is basic use example:

SyncedCron.add({
  name: 'Crunch some important numbers for the marketing department',
  schedule: function(parser) {
    // parser is a later.parse object
    return parser.text('every 2 hours');
  },
  job: function() {
    var numbersCrunched = CrushSomeNumbers();
    return numbersCrunched;
  }
});

The time interval is actually set as a plain text which is later being parsed. The best tool that I found so far.

Any suggestions?

@brylie
Copy link
Contributor Author

brylie commented Jun 5, 2015

Looks good. Do you recommend we go forward with that option?

@frenchbread
Copy link
Contributor

Since we needed good library/package for scheduling tasks with specific frequency - I think yes, I do recommend this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants