Page MenuHomePhabricator

Add a delay configuration option to checks
Open, MediumPublic

Description

Scap should support the ability to have delay checks supported in yaml.

This is already done ad hoc via things like bin/sh -c "sleep 30 && run-command", it would be nice if there were a configuration value to take care of this for you, like:

checks.yaml
checks:
  repool:
    type: command
    stage: restart_service
    command: pool-<service>
    delay: 30

would effectively do:

time.sleep(check.delay)
check.run()

something like that.