household_biz.get_restaurant_task_status
Overview
- Returns whether a household business is a restaurant template and whether its reconciler TimeTask is currently registered, plus configured interval, spawn cutoff lead time, and whether that cutoff currently applies (BL-58466).
Metadata
| Field | Value |
|---|---|
| Display | Get Restaurant Task Status |
| Category | household_biz |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| household_biz_id | entityId | no | — | Target HouseholdBiz entity id (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
is_restaurant_template | bool | yes | Whether the business template is classified as Restaurant |
is_task_registered | bool | yes | Whether the restaurant reconciler TimeTask is currently registered |
reconcile_interval_minutes | int | yes | Configured reconciler tick interval (game minutes) |
customer_base_visit_hours | int | yes | Base customer visit time in hours (no longer part of the spawn cutoff decision) |
customer_spawn_cutoff_lead_minutes | int | yes | Lead time before closing that stops automatic restaurant customer spawning (game minutes) |
total_operating_minutes | int | yes | Total operating span of today (game minutes) |
has_operating_span | bool | yes | Whether the operating span was resolved (false when not operating or work time is invalid) |
is_cutoff_applied | bool | yes | Whether the spawn cutoff currently applies to this business |
Usage
await inzoi.cli.execute('household_biz.get_restaurant_task_status', {
household_biz_id: 0, // optional
});