Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7340

DoFn.teardown metrics are lost in Python SDK

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • sdk-py-harness
    • None

    Description

      If user code in DoFn.shutdown updates custom user metrics, those updates will not get registered e.g. counter increments are not registered.

      Context: In FnApiRunner.run_stages, DoFn.teardown is called in worker_handler_manager.close_all, but this is called outside of the FnApiRunner.run_stage calls, so no metrics / monitoring info is retrieved there.

      Attachments

        Activity

          People

            Unassigned Unassigned
            myffical@gmail.com Yifan Mai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: