due-check
Determine whether a scheduled database job is due by comparing its schedule, last run status, retry defaults, and current time to decide if it should run now.
Instructions
dbabrain common.cli due-check: A schedule and its last run, asked whether it is due.
Request fields (pass them as request):
time_window: The schedule.
row: A store row instead of last_run / last_status.
last_run: The previous run's start.
last_status: done | error | timeout | running.
now: The instant to judge at (UTC).
local_now: The same in local time - checks the hours.
retry_default: The app's retry fallback.
timeout_default: The app's timeout fallback.
default_repeat: The app's interval fallback.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "due-check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |