Skip to content

Commit

Permalink
Doc: minimum sample-interval relation to runtime
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
asmacdo committed Jun 3, 2024
1 parent 2edd56e commit b98d6b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ options:
.duct/logs/{datetime_filesafe}-{pid}_)
--sample-interval SAMPLE_INTERVAL, --s-i SAMPLE_INTERVAL
Interval in seconds between status checks of the
running process. (default: 1.0)
running process. Sample interval should be larger than
the runtime of the process or `duct` may underreport
the number of processes started. (default: 1.0)
--report-interval REPORT_INTERVAL, --r-i REPORT_INTERVAL
Interval in seconds at which to report aggregated
data. (default: 60.0)
Expand Down
4 changes: 3 additions & 1 deletion src/duct.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def create_and_parse_args():
"--s-i",
type=float,
default=float(os.getenv("DUCT_SAMPLE_INTERVAL", "1.0")),
help="Interval in seconds between status checks of the running process.",
help="Interval in seconds between status checks of the running process. "
"Sample interval should be larger than the runtime of the process or `duct` may "
"underreport the number of processes started.",
)
parser.add_argument(
"--report-interval",
Expand Down

0 comments on commit b98d6b0

Please sign in to comment.