Loading...
Loading...
Scheduled Tasks
Automate recurring operations with cron-based scheduling. Run audits, generate reports, and perform compliance checks on autopilot.
Capabilities
Standard cron expressions for precise scheduling. Run tasks every minute, hourly, daily, weekly, or monthly.
Complete run history with status, duration, output, and error details for every task execution.
Instantly enable or disable tasks without deleting configuration. Pause and resume at any time.
Configurable retry counts for failed tasks. Automatic backoff and recovery for transient failures.
JSON-based task configuration for flexible parameterization. Customize behavior per task type.
Real-time status for pending, running, completed, failed, and cancelled task runs.
Developer Integration
import { DRD } from '@drd/sdk';
const drd = new DRD({ token: 'drd_live_sk_...' });
// Create a scheduled task
await drd.scheduledTasks.create({
name: 'Daily Compliance Check',
cronExpression: '0 0 * * *',
taskType: 'compliance_check',
config: {
frameworks: ['soc2', 'gdpr'],
notifyOnFailure: true,
},
});
// View run history
const task = await drd.scheduledTasks.getWithRuns({
id: 'task_abc123',
});
console.log(task.runs.length, 'total runs');Cron-based scheduling with full run history, retry logic, and status tracking. Start automating today.