Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1223

Stop reloading script files every time ExecutePythonProcessor is triggered

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0, 0.12.0
    • None

    Description

      Acceptance criteria:

      GIVEN A Getfile -> ExecutePythonScript (with "Reload on Script Change" not set) -> Putfile workflow
      WHEN The ExecutePythonScript is run twice with an update on the script file inbetween
      THEN On the second execution the behaviour of the ExecuteScriptProcessor should not change

      GIVEN A Getfile -> ExecutePythonScript (with "Reload on Script Change" disabled) -> Putfile workflow
      WHEN The ExecutePythonScript is run twice with an update on the script file inbetween
      THEN On the second execution the behaviour of the ExecuteScriptProcessor should not change

      GIVEN A Getfile -> ExecutePythonScript (with "Reload on Script Change" enabled) -> Putfile workflow
      WHEN The ExecutePythonScript is run twice with an update on the script file inbetween
      THEN On the second execution the behaviour of the ExecuteScriptProcessor should follow the updated script

      Background:
      For backward compatibility, we went for keeping the behaviour of reading the script file every time the processor is triggered intact.

      Proposal:

      We would like to add an option called "Reload on Script Change" to toggle this with the first major release.

      Attachments

        Issue Links

          Activity

            People

              lordgamez Gábor Gyimesi
              hunyadi Adam Hunyadi
              Votes:
              1 Vote for this issue
              Watchers:
              0 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 - 1h 20m
                  1h 20m