REGISTRY_AUDITbackground_jobs
Provision Node
Execution Engine

Worker Autonomy.

The autonomous orchestrators that power 2asana. These serverless workers handle the heavy lifting of synchronization and AI inference.

Efficiency Strategy

To handle large Asana projects without hitting API rate limits, 2asana employs a Metadata-First differential sync. Background jobs fetch basic metadata for all tasks but only perform deep content fetches (narratives, stories, and expanded custom fields) for tasks modified since the last recorded pass.

The Daily Pass Lifecycle

onDailyAnalysisRequest
The core 5-stage maintenance and analysis worker.
1

Global Discovery Sweep

Scans the project topology via the Asana Search API. It fetches high-level metadata for 100% of nodes to ensure perfect overdue and stale metrics.

2

Tactical Scoping

Identifies the "Delta Set"—tasks updated in the last 24h or overdue nodes showing stagnant activity levels.

3

Deep Narrative Harvesting

Ingests the full Story History for every node in the Delta. It uses pattern-matching to attribute system events to specific team members.

4

AI Inference (EPS Protocol)

Executes the Gemini 2.5 pass. It analyzes sentiment, detects blockers, and applies user-defined Project Rules to recalibrate risk scores.

5

Registry Persistence

Aggregates all findings into a static dailyAnalysis snapshot, providing a historical record of the project's tactical state.

On-Demand Infrastructure

sync-project-details
Bootstrap
Initializes node metadata and discovers logic schemas.

Retrieves workspace anchors, privacy settings, and all custom field definitions. It populates the projectCustomFields registry required for mapping.

pull-time-reports
Integrations
Automated ingestion from external tracking systems.

Authenticates with the configured time tracker, downloads tactical CSV data, and employs a Deterministic Identity Protocol to merge new records without duplication.