LearnNewsExamplesConnect
Frontmatter
assigneestobiu
createdAtFeb 7, 2026, 10:29 PM
updatedAtFeb 7, 2026, 10:33 PM
githubUrlhttps://github.com/neomjs/neo/issues/9043
authortobiu
commentsCount1
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtFeb 7, 2026, 10:33 PM

Enhancement: DevRank Updater Smart Scheduling & Logs

tobiu
tobiu commented on Feb 7, 2026, 10:29 PM

Enhance the DevRank Updater workflow to be more efficient and informative.

Goals:

  1. Skip Same-Day Updates: Ensure that users who have already been updated "today" (local calendar day) are excluded from the update batch, preventing redundant API calls.
  2. Summary Logs: Provide clear feedback at the end of the run:
    • How many users were actually updated.
    • How many users are pending an update (Backlog size).

Changes:

  1. Refactor apps/devrank/services/Manager.mjs:
    • In runUpdate:
      • Calculate today (YYYY-MM-DD).
      • Filter out users where lastUpdate starts with today.
      • Calculate backlogSize (count of remaining stale users).
      • Pass the filtered list to Updater.
      • Log the backlog size.
  2. Refactor apps/devrank/services/Updater.mjs:
    • Track successful updates count in processBatch.
    • Add a final summary log.
tobiu
tobiu Feb 7, 2026, 10:33 PM

Input from Gemini 3 Pro:

✦ Enhanced the DevRank Updater with smart scheduling and summary logs.

Changes

  1. Smart Scheduling: Manager.mjs now calculates today and filters out users whose lastUpdate timestamp starts with today's date. This prevents redundant API calls for users already updated in the current calendar day.
  2. Summary Logs: Updater.mjs and Manager.mjs now output a clear summary at the end of the run, including the count of successfully updated users and the remaining backlog size.

Example Output

[Manager] Backlog size: 543 users (pending update today).
...
--------------------------------------------------
[Updater] Run Complete.
[Updater] Successfully Updated: 100
[Updater] Remaining Backlog: 443
--------------------------------------------------

Code committed to dev branch.