Skip to main content

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

FieldValue
DisplayGet Restaurant Task Status
Categoryhousehold_biz
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
household_biz_identityIdno—Target HouseholdBiz entity id (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
is_restaurant_templateboolyesWhether the business template is classified as Restaurant
is_task_registeredboolyesWhether the restaurant reconciler TimeTask is currently registered
reconcile_interval_minutesintyesConfigured reconciler tick interval (game minutes)
customer_base_visit_hoursintyesBase customer visit time in hours (no longer part of the spawn cutoff decision)
customer_spawn_cutoff_lead_minutesintyesLead time before closing that stops automatic restaurant customer spawning (game minutes)
total_operating_minutesintyesTotal operating span of today (game minutes)
has_operating_spanboolyesWhether the operating span was resolved (false when not operating or work time is invalid)
is_cutoff_appliedboolyesWhether the spawn cutoff currently applies to this business

Usage

await inzoi.cli.execute('household_biz.get_restaurant_task_status', {
household_biz_id: 0, // optional
});