class_docstr: Scheduler raising an exception if data are computed too many times.
class_docstr_tok: ["Scheduler","raising","an","exception","if","data","are","computed","too","many","times","."]
docstr: Set starting and maximum compute counts.
docstr_tok: ["Set","starting","and","maximum","compute","counts","."]
code: def __init__(self, max_computes=1):
      """Set starting and maximum compute counts."""
      self.max_computes = max_computes
      self.total_computes = 0
  
imports: from contextlib import contextmanager
  from datetime import datetime
  from typing import Any
  from unittest import mock
  import dask.array
  import numpy
  from pyresample import create_area_def
  from pyresample.geometry import BaseDefinition, SwathDefinition
  from xarray import DataArray
  from satpy import Scene
  from satpy.composites import GenericCompositor, IncompatibleAreas
  from satpy.dataset import DataID, DataQuery
  from satpy.dataset.dataid import default_id_keys_config, minimal_default_keys_config
  from satpy.modifiers import ModifierBase
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 1 to create a new CustomScheduler object from inherited base classes: object with example: obj = CustomScheduler(max_computes)