# GetSyncJob

## Overview

GetSyncJob retrieves one sync-job execution record with direction, timing, counts, and terminal outcome detail.

## Business Rules

- Lookup by id performs an exact sync-job match.
- The query returns running and terminal sync-job states.

## Process Flow

```mermaid
flowchart TD
    A[Receive sync-job id] --> B[Query SyncJob]
    B --> C{Found?}
    C -->|No| D[Return null]
    C -->|Yes| E[Return sync job]
```

## External Dependencies

- None

## Error Scenarios

- None (returns null when no matching sync job exists)

## Test Cases

- returns sync job when found by id
- returns failed sync job with counts and error summary
- returns null when sync job is not found
