Giter Site home page Giter Site logo

Comments (1)

kingdonb avatar kingdonb commented on July 18, 2024

From:

It's great! And it's an example of ruby fibers for concurrency (I needed for my process to wait around 4 hours between pulling the current set of promises and whether they've been finished yet so I started with a script that exits when it's done, calls sleep for 4 hours, and then executes itself again after the wait... but that was clunky and difficult to monitor and test, so I decided to implement fibers with an "hourly heartbeat" to see if the fiber scheduler is still working and a 4-hourly scrape.)

So to the point... I have this other process, which is related to commits.to and has an hourly job

I think rather than using CronJob resources, which are going to use Kubernetes Job we can keep the design simpler (I don't currently manage 1 or more Kubernetes CronJob resources, so it's simpler not to add one then...) by leveraging this process that exists which already has an hourly heartbeat! Just making a note of this here before I forget that connection.

The other half of this problem is just firing up a debugger, and ensuring that we can actually hit the /cache endpoint without crashing the request. I had a stack dump but I don't have it handy at this moment.

from commits.to.

Related Issues (20)

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.