Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: increase function execution time #179

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

brunomenezes
Copy link
Collaborator

Summary

Code changes to increase the duration time on the function level. Only the API function handling the update of stale ENS entries will have a duration above the default 15 seconds on Vercel.

The reason is that, looking at the logs, the call for the ENS graphQL takes a considerable portion of that duration limit
varying between 7 ~ 11 s, plus the duration of avatar text checks on-chain may take around 4s ~ 6s passing the limit of 15s.

These times are based on the current 742 entries marked as stale and needed to be checked. The graphQL query to ENS is a single call passing all the addresses of interest, so not much space for optimisation in that end (based on the graph docs). So my assumption is more related to where the API function is running and the location of the ENS graphQL (Powered by TheGraph). I will add a few screenshots regarding the logs.

PS: Currently, our ENS storage has replicas in US / EU / APAC

Screenshots

First try (504 failure)

image

Second try (504 failure)

image

Third try (200 ok)

image

@brunomenezes brunomenezes self-assigned this Jan 7, 2025
Copy link

vercel bot commented Jan 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 5:32am

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12645805286

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 77.545%

Totals Coverage Status
Change from base Build 12641335934: 0.0%
Covered Lines: 339
Relevant Lines: 402

💛 - Coveralls

@brunomenezes brunomenezes merged commit f0104b4 into main Jan 7, 2025
6 of 7 checks passed
@brunomenezes brunomenezes deleted the feat/increase-cron-fn-exec-time branch January 7, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants