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

Warn when ifelapsed promise-spamming protection skips a promise

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      "ifelapsed" lock is made to avoid "promise spamming" i.e. executing again and again. The default is 1 minute I believe. This is what causes two subsequent cf-agent to be different: the first does all the work, the second skips almost everything.

      It would be good to print something to notify that promises were skipped. For example:

       notice: promise "handle" skipped because default ifelapsed timeout of 1m
               (promise anti-spam protection) has not elapsed since last execution
      

      It might also make sense to consider changing the default ifelapsed, from 1 min down to 10 or 1 second.

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel