code: def poller_tasker_handler(event, context):  # pylint: disable=W0613
      
      LOG.debug('[@] Running Poller Tasker...')
  
      queue_url = get_queue_url(os.environ.get('POLLER_TASKER_QUEUE_NAME', 'HistoricalVPCPollerTasker'))
      poller_task_schema = HistoricalPollerTaskEventModel()
  
      events = []
      for account in get_historical_accounts():
          for region in POLL_REGIONS:
              events.append(poller_task_schema.serialize_me(account['id'], region))
  
      try:
          produce_events(events, queue_url, randomize_delay=RANDOMIZE_POLLER)
      except ClientError as exc:
          LOG.error(f'[X] Unable to generate poller tasker events! Reason: {exc}')
  
      LOG.debug('[@] Finished tasking the pollers.')
docs: Historical VPC Poller Tasker.
  
      The Poller is run at a set interval in order to ensure that changes do not go undetected by Historical.
  
      Historical pollers generate `polling events` which simulate changes. These polling events contain configuration
      data such as the account/region defining where the collector should attempt to gather data from.
  
      This is the entry point. This will task subsequent Poller lambdas to list all of a given resource in a select few
      AWS accounts.