Skip to content

Slack search backfill loses request/cost accounting when a tick errors before state.save #55

Description

@YellowSnnowmann

Surfaced by CodeRabbit on #48 (providers/slack.rs ~L71-165). Pre-existing — engine original providers/slack.rs uses ? at the same sites before its state.save; ported unchanged.

checked_execute records billable requests and cost into SyncState before returning an error; the tick's ? returns before state.save, so the daily budget never advances. A backfill that fails repeatedly keeps calling SLACK_SEARCH_MESSAGES unaccounted.

Fix: run the body, then always save (as run_incremental_sync in orchestrator.rs already does on both paths).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions