Giter VIP home page Giter VIP logo

Comments (4)

VaalaCat avatar VaalaCat commented on May 25, 2024 3

This feature will be added soon!

Cron trigger is not directly supported by the cloudflare's workerd readme file, but there's some way to implement this in vorker.

This feature is on the roadmap.

from vorker.

VaalaCat avatar VaalaCat commented on May 25, 2024

seems that the cloudflare already implement this.

need some time to figure out how to use it

https://github.com/cloudflare/workerd/blob/262307f30c5a80e4a7608974bf6128f3bf20ca02/samples/durable-objects-chat/chat.js#L95

from vorker.

kashalls avatar kashalls commented on May 25, 2024

In workers, usually the scheduled function gets called. It would be up to the code to decide if it calls the same function as fetch. This is an outdated example but it shows the code portion: https://github.com/kashalls/cloudflare-workers/blob/main/packages/cloudflare-status/src/index.ts#L24

from vorker.

VaalaCat avatar VaalaCat commented on May 25, 2024

At present, the official documentation of workerd does not clearly explain how cron is used or triggered. Although they have a corresponding implementation on cloudflare worker, its open source version (workerd) does not give corresponding parameter (or configuration) instructions. It will take more time to figure out whether cloudflare will implement cron in the future (or if it has already been implemented).

If there is any progress about cron trigger, I will update the progress under this Issue.

from vorker.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.