Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-126

execution model for execresult() returnszero() and usemodule()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Evaluation
    • Labels:
      None

      Description

      Concerning this thread,
      https://cfengine.com/forum/read.php?3,25496

      Is it possible to have an option to execute it only once and done? I know that by default, CFEngine applies policy => "constant"; to variable evaluation and only one value would be assigned to the variable (no.. not the 1st value from the thread) but still execresult() continues running more for a several times. It will slow down CFEngine runtime a lot for a long executed command.

      I can workaround using commands: promise with classes. IMHO, it should be able to adjust by the function itself.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                a10005 Nakarin Phooripoom (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel