the-hideout / tarkov-dev

The official site for tarkov.dev - A web app to track item prices, view trader barters, quests, maps, and much more!
https://tarkov.dev
MIT License
147 stars 53 forks source link

Opitmize/reduce Tarkov Tracker API calls #977

Closed Razzmatazzz closed 3 months ago

Razzmatazzz commented 3 months ago

Previously, Tarkov Tracker progress would update every five minutes, regardless of whether the window was in focus. This resulted in unnecessary API calls for tabs that were open in a browser but not in active use. Now, when a scheduled update is triggered and the browser window/tab is not in focus, that update will be deferred until focus is regained. This should greatly reduce the number of calls to the Tarkov Tracker API overall.

github-actions[bot] commented 3 months ago

👋 Thanks for opening a pull request!

If you are new, please check out the trimmed down summary of our deployment process below:

  1. 👀 Observe the CI jobs and tests to ensure they are passing

  2. ✔️ Obtain an approval/review on this pull request

  3. 🚀 Deploy your pull request to the development environment with .deploy to development

  4. 🚀 Deploy your pull request to the production environment with .deploy

    If anything goes wrong, rollback with .deploy main

  5. 🎉 Merge!

Note: If you have a larger change and want to block deployments, you can run .lock --reason <reason> to lock all other deployments (remove with .unlock)

You can view the branch deploy usage guide for additional information

Razzmatazzz commented 3 months ago

.deploy

github-actions[bot] commented 3 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: better-tt-update

github-actions[bot] commented 3 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch better-tt-update to production

Environment URL: tarkov.dev

Razzmatazzz commented 3 months ago

.deploy

github-actions[bot] commented 3 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: better-tt-update

github-actions[bot] commented 3 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch better-tt-update to production

Environment URL: tarkov.dev