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

Feature: programmatically settable tasks for functions #5488

Closed
Silfalion opened this issue May 2, 2023 · 1 comment
Closed

Feature: programmatically settable tasks for functions #5488

Silfalion opened this issue May 2, 2023 · 1 comment

Comments

@Silfalion
Copy link

So the objective of this issue is to suggest the introduction of a programmatically settable task scheduler for functions.

Right now function schedule is only set at the function creation and can only be changed in a way that overrides the previous schedule.

The suggestion would be to have a variable, as @Meldiron proposed(on Discord), for the execute method that would contain a datetime. The function would execute at that precise time.

This would allow to have for example 5 executions planed for a function with different inputs without changing the initial frequency of the function.

Another very interesting feature would also be, as Mattias Aabmets(Discord) suggested, to have yet another variable containing a cron for tasks for which the logic(function code) is known but frequency is erratic.

An example that would illustrate these 2 suggestions would be a reminder app. The first reminder that would take advantage of the first suggestion is setting up a datetime one day prior to a meeting to prep for it.

The second aspect of the example would be a reminder that rings me every few days(CRON) for my morning sport routine.

Right now I find myself needing to have a mini server that hit a function endpoint at a specific frequency/date that I set through the server's Api to emulate this feature , and I think it would be a powerful addition to appwrite if bundeled directly into it.

Looking forward to hearing your thoughts:)

@Silfalion
Copy link
Author

I created the issue through the mobile app so it's not following the right template, creating another one and closing 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

1 participant