Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17509

[C++] Simplify async scheduler by removing the need to call End

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 11.0.0
    • C++

    Description

      Right now the AsyncScheduler requires that we call End. This is to distinguish between a scheduler running out of tasks because it hit an idle period (in which case it shouldn't mark itself finished) and a scheduler running out of tasks because it is truly done (in which case it should mark itself finished).

      It should be possible to require that scheduler tasks only be added by existing tasks. When creating a scheduler one would supply an "initial task" to bootstrap the first set of tasks. In this case we could get rid of the End method because the only time a scheduler will run out of tasks is when it is finished.

      Attachments

        Issue Links

          Activity

            People

              westonpace Weston Pace
              westonpace Weston Pace
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m