RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Recurring Schedule interval param

juzser opened this issue · comments

Hi guys,

Thank you for bring schedule feature into app-engine. I've waited for it for a long time (I had to use hubot instead).
I have a plan to build a schedule app, and see everything are all good now.

But I have some questions about the interval param in IRecurringSchedule:

  1. It can be a "cron string", do you mean it's the same as: crontab.guru?
  2. The human-interval as I known, it does not support any recurring string?
  3. The interval number type is milliseconds or seconds?

And side question: can you give me a quick explanation about IRecurringStartup please?

Thank guys.

as I see they are using Agenda which supports cron string 🤔

Thank, I know that.

Never mind, I found the pattern, they're using normal cron pattern, that can be generated via crontab.guru.
For example: The pattern to execute the task on Monday at 9:00 is 0 9 * * 1.

Anyway, here is the "more details" doc for Schedule API:
https://github.com/RocketChat/docs/blob/9a086611ea610d1760870e838d92b4b9e5000496/apps-development/scheduler-api.md

P/S: Happy to see someone Vnese also using this platform.