For Workes & Pages, what is the name of the domain?
example.com
What is the error number?
None
What is the error message?
None
What is the issue or error you’re encountering
I would like to have the same worker triggered by cron and HTTP fetch events. However, the workers exits silently while awaiting DB query results. I’ve wrapped the await query in a try/catch but it doesn’t catch an error and no further processing is performed by the worker.
What are the steps to reproduce the issue?
- Create a worker that extends WorkerEntrypoint
- implement a schedule function that queries the D1
this.env.DB
binding - implement a fetch function that queries the D1
this.env.DB
binding - notice the cron trigger fires but the worker exits while trying to execute query
- notice the fetch trigger works and the query results are available to the worker