Write CRON job for event sync