-
Notifications
You must be signed in to change notification settings - Fork 41
Labels
platform:backendBackend / cloud functionsBackend / cloud functionspriority:medium 👍Regular priority issueRegular priority issue
Milestone
Description
Description
Implement a feature that allows scheduling of publishing tasks in the future using Cloud Tasks. This will enable documents to be published automatically at a specified date and time.
This issue depends on #382
Requirements
-
Scheduling Publish Tasks:
- Allow users to schedule a publish task for a document by selecting a future date and time.
- Use Cloud Tasks to handle the scheduling and execution of these publish tasks.
-
Cloud Function Integration:
- Create a Cloud Function that triggers when a document's
publishedAt
attribute is set to a future date. - This Cloud Function should create a Cloud Task that will execute at the specified
publishedAt
time. - When the task is executed, the document should be published by copying data to the public collections such as described in Cloud Function for Publishing Documents to Public Collection #382
- Create a Cloud Function that triggers when a document's
-
Restrict Dates too far in the future:
- The cloud tasks seem only support 720 hours in the future dates of execution
- Normalize the "scheduled date" to be maximum "server time + 720 hours"
Metadata
Metadata
Assignees
Labels
platform:backendBackend / cloud functionsBackend / cloud functionspriority:medium 👍Regular priority issueRegular priority issue
Type
Projects
Status
Done