From 5f6ff82c7ee6270c4af86e6f63a6bff9ae90e1c3 Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Tue, 7 Jan 2025 17:29:21 +1300 Subject: [PATCH 1/2] feat: increase execution time for cron function API for handling stale ens entries. --- apps/staking/src/pages/api/cron/ens-update-stale.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/staking/src/pages/api/cron/ens-update-stale.ts b/apps/staking/src/pages/api/cron/ens-update-stale.ts index 48f2fd69..1177d033 100644 --- a/apps/staking/src/pages/api/cron/ens-update-stale.ts +++ b/apps/staking/src/pages/api/cron/ens-update-stale.ts @@ -20,6 +20,13 @@ const cronSecret = process.env.CRON_SECRET; const isAuthorized = (req: NextApiRequest) => req.headers.authorization === `Bearer ${cronSecret}`; +/** + * This function will be allowed to run for a maximum of 30 seconds. + */ +export const config = { + maxDuration: 30, +}; + const handler = async (req: NextApiRequest, res: NextApiResponse) => { if (!isAuthorized(req)) return handleResponse({ ok: false, error: 'unauthorized' }, res); From 58f7b05db91147ead677ddf4cf80407386b666b0 Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Tue, 7 Jan 2025 17:50:50 +1300 Subject: [PATCH 2/2] doc(explorer): Add changelog entry. Add information for next explorer release v3.9.1 --- CHANGELOG.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3cf3977..dd30d278 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.9.1] - 2025-01-08 + +- Increased only the execution duration for the function that handles the update of ENS entries marked as stale. + ## [3.9.0] - 2025-01-07 -- Improve how the ENS address information is provided if available through the UI. The new approach considerably improves efficiency in terms of on-chain reads. +- Improved how the ENS address information is provided if available through the UI. The new approach considerably improves efficiency in terms of on-chain reads. ## [3.8.6] - 2024-12-05 @@ -396,7 +400,8 @@ Staking Pools - First release -[unreleased]: https://github.com/cartesi/explorer/compare/v3.9.0...HEAD +[unreleased]: https://github.com/cartesi/explorer/compare/v3.9.1...HEAD +[3.9.1]: https://github.com/cartesi/explorer/compare/v3.9.1...v3.9.0 [3.9.0]: https://github.com/cartesi/explorer/compare/v3.9.0...v3.8.6 [3.8.6]: https://github.com/cartesi/explorer/compare/v3.8.6...v3.8.5 [3.8.5]: https://github.com/cartesi/explorer/compare/v3.8.5...v3.8.4