Because federal bankruptcy law preempts California landlord/tenant law, it's important that commercial landlords and tenants alike understand the process when a tenant has filed for (or is considering filing for) bankruptcy. The timing of a tenant's bankruptcy is critical because once a tenant files for bankruptcy an automatic stay immediately stops any state court action against the tenant including pending unlawful detainer actions (evictions). Once the bankruptcy stay is in force, the tenant can maintain possession of the premises for up to seven months so long as it pays rent post bankruptcy filing. Landlords' recourse depends entirely on the timing of the landlord's pre-bankruptcy actions. If a judgment is obtained prior to the bankruptcy filing, the landlord will be able to recover possession. If an unlawful detainer action is filed but a judgment is not yet obtained, the landlord can file a motion with the bankruptcy court seeking to lift the stay so that the landlord can proceed with the unlawful detainer action. This can be accomplished in relative short order. If the bankruptcy action is filed before the landlord filed an unlawful detainer action, then the landlord is bound by the bankruptcy procedures which give tenants 120 days time to consider their options (90 days longer with a court approved extension).
Due to the bankruptcy risk, it's advisable for landlords to move quickly where they suspect a tenant is heading for bankruptcy and is behind in rent. Of course, there is a cost (especially for large retail centers) to serving three day notices and filing unlawful detainers on the drop of a hat. Long time tenants with proven track records are known entities. There is a benefit to working with these known entities to see if the problem is a short term one or, if not, whether a compromise can be reached. Either way, open lines of communication allow landlords to get a better sense of the tenant's current position while simultaneously letting the tenant know that the landlord is willing to talk. However, if there is any hint that bankruptcy is on the horizon, the sound business decision is to file an unlawful detainer action as soon as possible (after a three day notice to pay rent or quit is served) and to pursue the action to judgment as quickly as possible.
The decision for tenants on the verge of bankruptcy on the other hand is much simpler. They want to file for bankruptcy as soon as possible. However, it's important that they are not filing bankruptcy for the sole purpose of avoiding eviction. First, at best the eviction proceedings are merely delayed (and rent for the post bankruptcy filing will still be due). Second, there are consequences to filing frivolous bankruptcies. For a tenant that truly qualifies, bankruptcy is certainly worth considering and back due rental obligations should be a factor in that decision. Because of the negative consequences attached to bankruptcy, it's important to consult with a bankruptcy attorney to fully understand whether it is right for your business.