Cron+Queues support in Cloudflare Pages

Hi there,
I have a worker which is triggered via:

  • http (for the website part)
  • cron job
  • queue
    by exposing “fetch”, “scheduled” and “queue” functions in its index.ts file.

I consider migrating it to Cloudflare Pages because it’s much easier to build a website with them.

The Problem is that it’s not clear how Cron and Queue work with Cloudflare Pages Functions:

  • how to setup a Cron job to invoke a particular Pages Function
  • how can Pages Function write to a Queue
  • how can Pages Function be invoked by a Queue

I couldn’t find answers to those questions in the Pages docs.

If Pages Functions do not support invocation by Cron and Queue, then what would be the recommended setup for my use case? Having two different projects - one for website (Pages) and another for Cron/Queue (Worker)?

Thanks in advance!

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.