Skip to content

Commit

Permalink
Fixes #22655: Always send start/end reports even in changes-only mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Apr 19, 2023
1 parent 3ba5b58 commit dddd5bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions techniques/system/common/1.0/promises.st
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ bundle agent startup
scope => "namespace";
methods:
# Should we send a message stating this agent is starting up?
# Always do it in "full_compliance" mode
# In other modes, only do it here if we need to send it as a "heartbeat", that is if it hasn't already been sent recently enough
full_compliance|!heartbeat_sent::
# Always send start/end messages, this will ensure all sent runlogs are valid.
# We can as disabled reporting is handled in the wrapper layer, and should as changes-only always produces some logs
# (since HTTP reporting and agent output capture).
# NOTE: This means heartbeat configuration is actually ignored and a report is sent for every agent run.
"Send start message"
usebundle => startExecution,
action => immediate;
Expand Down

0 comments on commit dddd5bf

Please sign in to comment.