You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An array of collection slugs. All collections must have drafts enabled.
41
46
47
+
### `globals?: string[]`
48
+
49
+
An array of global slugs. All globals must have drafts enabled.
50
+
42
51
### `interval?: number`
43
52
44
53
Specify how frequently to check for scheduled posts (in minutes).
@@ -68,8 +77,8 @@ Collection added by the plugin to store pending schedule updates. Can be customi
68
77
A configurable timer checks for any posts to be scheduled in the upcoming interval window. For each hit, it creates a separate job that's fired at that document's `publish_date` (via [node-schedule](https://github.com/node-schedule/node-schedule)). The idea here is that you can configure your interval window to avoid super long running tasks that are more prone to flaking.
69
78
70
79
71
-
## Notes
80
+
## Caveats
72
81
73
-
Since the plugin uses cron under the hood, it depends on a long-running server and is incompatible with short-lived/serverless environments like ECS, or Vercel if you're using Payload 3.0 beta.
82
+
* This plugin doesn't support Payload 3.0 beta. I intend to update it once 3.0 is stable, but it'll require substantial re-architecting to work in a serverless environment.
74
83
75
-
I developed this plugin for a project that hasn't gone live yet. It has good test coverage but not in the wild yet -- there's your disclaimer.
84
+
* There's no logic in place to dedupe schedules across multiple instances of a single app (see https://github.com/wkentdag/payload-plugin-scheduler/issues/9)
0 commit comments