Skip to content

flexiooss/poom-crons

Repository files navigation

poom-crons

Poor man's crontab

Task Specs

  • at 8:30
{
  "url": "http://an.url",
  "payload": {
    "a": "property"
  },
  "scheduled": {
    "at": {
      "minutes-of-hours": 30,
      "hour-of-day": 8
    }
  }
}
  • every 2 minutes
{
  "url": "http://an.url",
  "payload": {
    "a": "property"
  },
  "scheduled": {
    "every": {
      "minutes": 2,
      "starting-at": "2019-02-15T00:00:00.000Z"
    }
  }
}
  • on thuesdays at 14:35
{
  "url": "http://an.url",
  "payload": {
    "a": "property"
  },
  "scheduled": {
    "at": {
      "minutes-of-hours": 35,
      "hour-of-day": 14,
      "day-of-week": 2
    }
  }
}
  • every 3 hours
{
  "url": "http://an.url",
  "payload": {
    "a": "property"
  },
  "scheduled": {
    "every": {
      "hours": 3,
      "starting-at": "2019-02-25T00:00:00.000Z"
    }
  }
}
  • on the 5th of each month at 07:32
{
  "url": "http://an.url",
  "payload": {
    "a": "property"
  },
  "scheduled": {
    "at": {
      "minutes-of-hours": 32,
      "hour-of-day": 7,
      "day-of-month": 2
    }
  }
}
  • on the 3rd month of each year on day 5 at 6:41
{
 "url": "http://an.url",
 "payload": {
   "a": "property"
 },
  "scheduled": {
    "at": {
      "minutes-of-hours": 41,
      "hour-of-day": 6,
      "day-of-month": 5,
      "motnth-of-year": 3
    }
  }
}