Jobs
The Jobs page shows all background processing tasks.
Accessing Jobs
Section titled “Accessing Jobs”Navigate to the Jobs page:
http://localhost:3000/jobsJob Types
Section titled “Job Types”| Type | Description |
|---|---|
sync | Repository discovery and clone |
index | Building search index |
delete | Removing repository data |
cleanup | Maintenance tasks |
Job List
Section titled “Job List”The main view displays all jobs:
| Column | Description |
|---|---|
| ID | Unique job identifier |
| Type | Job type (sync, index, etc.) |
| Repository | Associated repository |
| Status | Current state |
| Created | When job was queued |
| Duration | How long job ran |
Filtering
Section titled “Filtering”Filter jobs by:
- Status: Running, completed, failed, pending
- Type: Sync, index, delete, cleanup
- Repository: Specific repository
- Time Range: Last hour, day, week
Status Colors
Section titled “Status Colors”| Status | Icon | Color | Description |
|---|---|---|---|
| Pending | 🕐 | Yellow | Waiting in queue |
| Running | ⏳ | Blue | Currently executing |
| Completed | ✓ | Green | Finished successfully |
| Failed | ⚠ | Red | Error occurred |
Job Details
Section titled “Job Details”Click on a job to view details:
Info Tab
Section titled “Info Tab”- Job ID: Unique identifier
- Type: Job type
- Repository: Associated repo (if any)
- Status: Current state
- Created: Queue time
- Started: Execution start
- Finished: Completion time
- Duration: Total runtime
Progress Tab
Section titled “Progress Tab”For running jobs:
Cloning repository... ✓Analyzing files... ✓Building index... [████████░░░░] 67%Logs Tab
Section titled “Logs Tab”Detailed execution logs:
[10:30:15] Starting index job for myorg/api[10:30:16] Analyzing 1,234 files[10:30:45] Indexing Go files: 856 files[10:31:12] Indexing YAML files: 234 files[10:31:30] Building trigram index[10:32:00] Index completed successfullyError Tab
Section titled “Error Tab”For failed jobs:
Error: Failed to clone repository
Details: fatal: could not read Username for 'https://github.com': terminal prompts disabled
Suggestion: Check that your token has repository access permissionsActions
Section titled “Actions”Cancel Job
Section titled “Cancel Job”Cancel a running or pending job:
- Click on the job
- Click Cancel Job
- Confirm
Retry Job
Section titled “Retry Job”Retry a failed job:
- Click on the failed job
- Click Retry
- A new job is queued
Clear Completed
Section titled “Clear Completed”Remove old completed jobs:
- Click Clear Completed button
- Select time range (older than 1 day, 1 week, etc.)
- Confirm
Queue Status
Section titled “Queue Status”The header shows queue statistics:
| Metric | Description |
|---|---|
| Pending | Jobs waiting to run |
| Running | Currently executing |
| Completed | Finished in last 24h |
| Failed | Errors in last 24h |
Monitoring
Section titled “Monitoring”Auto-Refresh
Section titled “Auto-Refresh”The jobs list refreshes automatically every 5 seconds.
Toggle auto-refresh with the refresh button.
Notifications
Section titled “Notifications”Enable notifications to get alerts:
- Job completed
- Job failed
- Queue backup (many pending)
Troubleshooting
Section titled “Troubleshooting”Job Stuck in Pending
Section titled “Job Stuck in Pending”Possible causes:
- Worker not running: Check that the indexer process is running
- Queue full: Too many jobs waiting
- Resource limits: Server under load
Job Failing Repeatedly
Section titled “Job Failing Repeatedly”Check common issues:
- Token expired: Regenerate access token
- Network issues: Check connectivity
- Disk space: Ensure sufficient space
- Memory: Large repos may need more memory
Finding Failed Jobs
Section titled “Finding Failed Jobs”Quick filters:
Status: FailedTime: Last 24 hoursOr use the search:
status:failed repo:myorg/apiJob History
Section titled “Job History”Retention
Section titled “Retention”By default, job history is kept for:
- Completed jobs: 7 days
- Failed jobs: 30 days
Configure in settings:
jobs: retention: completed: 168h # 7 days failed: 720h # 30 daysExport
Section titled “Export”Export job history for analysis:
- Click Export button
- Select format (CSV, JSON)
- Choose time range
Next Steps
Section titled “Next Steps”- Repositories - View repository status
- Connections - Manage code hosts