Skip to content
Snippets Groups Projects
Commit 4e4b9c16 authored by lockloss's avatar lockloss
Browse files

online: don't touch stat file at init if it already exists

This delays the update until the actual iteration starts.
parent 2332f67f
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,8 @@ if __name__ == '__main__':
format='%(asctime)s %(message)s'
)
stat_file = os.path.join(config.CONDOR_ONLINE_DIR, 'stat')
open(stat_file, 'w').close()
if not os.path.exists(stat_file):
open(stat_file, 'w').close()
search.search_iterate(
event_callback=analyze.analyze_condor,
stat_file=stat_file,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment