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

Schedule Tasks at a Predefined Time in the Future #18

Open
1 task done
PSchmiedmayer opened this issue Jul 30, 2023 · 2 comments · May be fixed by #44
Open
1 task done

Schedule Tasks at a Predefined Time in the Future #18

PSchmiedmayer opened this issue Jul 30, 2023 · 2 comments · May be fixed by #44
Labels
enhancement New feature or request

Comments

@PSchmiedmayer
Copy link
Member

PSchmiedmayer commented Jul 30, 2023

Use Case

Some tasks are not repeating, and it should be possible to schedule these types of tasks independent of a start and end date as well as the need for a repetition definition.

Problem

The current API surface only offers mechanisms to offer repeating tasks. While the repetition can be set for N=1 we should offer a nicer API surface, including the removal of a requirement to define a start and end date.

Solution

The implemented functionality should provide the key feature to schedule tasks at a specific time or at a specific distance.

The API surface can move the start and end date in a Repetition type and add a new enum in the Schedule type that would then encapsulate the repetition and the fixed scheduling functionality.

Defining a task at a specific distance should be time-zone independent.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@PSchmiedmayer PSchmiedmayer added the enhancement New feature or request label Jul 30, 2023
@imanabu
Copy link

imanabu commented Jun 8, 2024

Firebase functions have a nice feature that it will execute a function at pre-determined intervals. I use this for one of my firebase apps to remind users of upcoming events. This would be very easy to implement.

@PSchmiedmayer
Copy link
Member Author

@imanabu Thanks for the input! Spezi Scheduler is currently doing all scheduling, planning, and storage of tasks is happening locally on the device and Firebase and others could be used as other storage backends in the future.
As noted in #20 we should probably first tackle this general architectural decision and rework before we think about integrating a server-side logic to schedule tasks which would probably only be applicable for push notifications and data storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
2 participants