Giter Site home page Giter Site logo

Heroku request timeout about gu-who HOT 4 OPEN

epoberezkin avatar epoberezkin commented on July 22, 2024
Heroku request timeout

from gu-who.

Comments (4)

prnewman avatar prnewman commented on July 22, 2024 1

@rtyley Thanks for the feedback. I'll update if things change as more users comply.

This hiccup notwithstanding, gu:who has been extremely helpful. Thank you!

from gu-who.

prnewman avatar prnewman commented on July 22, 2024

We get the same application error in an organization with 273 github users.

from gu-who.

rtyley avatar rtyley commented on July 22, 2024

@Nick-Smith has mentioned this issue as well - presumably you work together @prnewman ?! He said:

Basically, it looks like the request times out. I think the audits are being run successfully but the results page never renders because it has to wait too long. We have >250 users so it might just be an issue of too many users to churn through in the given time? You might be able to fix it by parallelizing the audit for each user.

Sorry to hear about the problems you've been having. Nick's idea of parallelizing the audit by user sounds reasonable, the code you'd want to try changing would be:

https://github.com/guardian/gu-who/blob/19d779dd16/app/lib/OrgSnapshot.scala#L111-L137

We have ~190 users and the job doesn't time out - usually the first run is the worst while all the GitHub calls are getting cached. We're also using a legacy Heroku dyno which may actually be better performing, but not an option for you:

image

It will also run slower if there are lots of non-compliant users - we're in the happy position of having 100% compliance at the Guardian, so the check runs pretty fast. You may want to run gu:who locally on a laptop for a few days (getting the number of non-compliant users to decrease) before switching over to Heroku.

I'm afraid @lindseydew & I are pretty busy right now, we haven't much time for maintenance on gu:who!

from gu-who.

Nick-Smith avatar Nick-Smith commented on July 22, 2024

@rtyley Awesome, thanks for the help Roberto! And yes, @prnewman is a colleague of mine.
It seems like the service is actually working, it's just the UI that is timing out.

Hopefully once the service has warmed up and most of our users are compliant the UI will start working.

from gu-who.

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.