Get Redis Job Status
Batch Calling
Get Redis Job Status
Get Redis job status for debugging scheduled batch jobs. Verifies if job exists in Redis defer queue.
GET
Get Redis Job Status
Overview
Retrieves the Redis-side status of a scheduled batch job. This endpoint is primarily for debugging and troubleshooting scheduled jobs. Use this to:- Verify a scheduled job was created correctly
- Check if job still exists in Redis before cancellation
- Confirm job was removed after cancellation
- Debug scheduling issues
This endpoint is for debugging purposes only. For normal operations, use Get Batch Job Detail.
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
batch_job_id | string | ✅ | Unique batch job identifier |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
batchJobId | string | Batch job ID |
databaseStatus | string | Job status in database |
scheduledJobId | string | Redis/ARQ job ID |
scheduledStartTime | string | Scheduled time (ISO 8601, UTC) |
redisJobInfo | object | Redis-side job information |
Redis Job Info Object
| Field | Type | Description |
|---|---|---|
job_id | string | ARQ job identifier |
in_defer_queue | boolean | Whether in defer queue (always false for ARQ 0.26.3+) |
job_metadata_exists | boolean | Whether job key exists in Redis |
scheduled_time | string | Scheduled execution time from Redis |
note | string | Implementation note about ARQ version |
Examples
Example 1: Check Scheduled Job Status
Example 2: Check Non-Scheduled Job
Example 3: Debug Cancellation
Before cancelling a scheduled job, verify it exists:Interpretation Guide
Job Exists in Redis
Job Not Found in Redis
- Job already executed (dequeued by worker)
- Job was cancelled previously
- Database and Redis are out of sync
- Job creation failed silently
No Scheduled Job ID
running, completed, pending, or was never scheduled).
Error Handling
404 Not Found
500 Internal Server Error
Troubleshooting
Issue: Job Shows “scheduled” But Never Started
Check Redis status:job_metadata_exists is false:
- Job may have been lost (Redis restart, crash)
- Database and Redis are out of sync
- Solution: Use Start Batch Job to manually start
Issue: Cancellation Returns “Job Not Found”
Check Redis status first:job_metadata_exists is false:
- Job already executed or was never in Redis
- Cancellation will still update database
- Expected behavior:
redisJobCancelled: falsein response
Issue: Scheduled Time Wrong
Verify timezone conversion:scheduledStartTime (database) with redisJobInfo.scheduled_time (Redis):
- They should match (within seconds)
- If different, there may be a timezone conversion issue
Related
- Get Batch Job Detail — Get complete job info
- Cancel Batch Job — Cancel a scheduled job
- Reschedule Batch Job — Change scheduled time
- Batch Calling Guide — Complete guide to batch campaigns
Authorizations
Your TalkifAI API key. Get it from Studio → Settings → API Keys.