mirror of
https://github.com/xtr-dev/payload-automation.git
synced 2025-12-10 00:43:23 +00:00
- Remove cron-trigger.ts and cron-scheduler.ts files - Clean up cron-related code from plugin index and workflow hooks - Remove cron references from workflow executor types - Add cron to NOT-IMPLEMENTING.md with webhook alternatives - Update README with scheduled workflow documentation using external services - Suggest GitHub Actions and Vercel Cron as reliable alternatives Benefits of external scheduling: - Better reliability and process isolation - Easier debugging and monitoring - Leverages existing cloud infrastructure - Reduces plugin complexity and maintenance burden
12 lines
422 B
TypeScript
12 lines
422 B
TypeScript
import type { Payload } from 'payload'
|
|
|
|
/**
|
|
* Initialize hooks for the workflows collection
|
|
* Currently minimal - can be extended for future workflow management features
|
|
*/
|
|
export function initWorkflowHooks(payload: Payload, logger: Payload['logger']): void {
|
|
// Future workflow hooks can be added here
|
|
// For example: workflow validation, cleanup, statistics, etc.
|
|
|
|
logger.debug('Workflow hooks initialized')
|
|
} |