Add scraper status collection and presentation #3
@@ -1 +1 @@
|
||||
0 6,18 * * * cd /app && bash /app/run_all.sh >> /proc/1/fd/1 2>> /proc/1/fd/2
|
||||
0 */4 * * * cd /app && bash /app/run_all.sh >> /proc/1/fd/1 2>> /proc/1/fd/2
|
||||
|
||||
@@ -84,8 +84,8 @@ def main():
|
||||
help="ISO timestamp of scrape start (default: now)")
|
||||
parser.add_argument("--duration", dest="duration", type=int, default=None,
|
||||
help="Run duration in seconds")
|
||||
parser.add_argument("--keep", dest="keep", type=int, default=5,
|
||||
help="Number of history entries to keep (default: 5, 0=unlimited)")
|
||||
parser.add_argument("--keep", dest="keep", type=int, default=20,
|
||||
help="Number of history entries to keep (default: 20, 0=unlimited)")
|
||||
args = parser.parse_args()
|
||||
|
||||
start_time = args.start_time or datetime.now().isoformat(timespec="seconds")
|
||||
|
||||
Reference in New Issue
Block a user