fnproject / fn

The container native, cloud agnostic serverless platform.
http://fnproject.io
Apache License 2.0
5.76k stars 405 forks source link

Scheduler #21

Open rdallman opened 7 years ago

rdallman commented 7 years ago

In gitlab by @treeder on May 12, 2017, 11:33

A format like Google AppEngine could be good, human readable: https://cloud.google.com/appengine/docs/standard/python/config/cron

The scheduler processes must be coordinated to ensure if multiple are running they don't start the same job.

rdallman commented 7 years ago

In gitlab by @denismakogon on May 17, 2017, 17:26

So, there are two obvious options:

  1. Use something written in go for scheduling (like https://github.com/jasonlvhit/gocron) and build necessary API around it.
  2. Use open sourced cron schedulers like Chronos https://github.com/mesos/chronos or use unix native scheduler (https://en.wikipedia.org/wiki/Cron).

As far as i understand, scheduler should be capable of:

rdallman commented 7 years ago

In gitlab by @treeder on May 18, 2017, 10:12

This part should really just be the trigger that queues up a task/function. So essentially it just hits a URL on schedule defined by the user.

The rest of the things you mention in the bottom bullets should just be standard parts of Functions, not part of the scheduler.