[ARVADOS] updated: ce446862bfd44f0d60eb12633a88036f85070786

Git user git at public.curoverse.com
Mon Feb 29 15:40:29 EST 2016


Summary of changes:
 tools/crunchstat-summary/crunchstat_summary/summarizer.py | 5 +++++
 1 file changed, 5 insertions(+)

       via  ce446862bfd44f0d60eb12633a88036f85070786 (commit)
      from  502bc5da4faeca9b9522a63472add3f8ec3f39f9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ce446862bfd44f0d60eb12633a88036f85070786
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Feb 29 15:40:14 2016 -0500

    Workaround for https://bugs.python.org/issue7980. No issue #

diff --git a/tools/crunchstat-summary/crunchstat_summary/summarizer.py b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
index f422501..2ac12ab 100644
--- a/tools/crunchstat-summary/crunchstat_summary/summarizer.py
+++ b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
@@ -21,6 +21,11 @@ from crunchstat_summary import logger
 AVAILABLE_RAM_RATIO = 0.95
 
 
+# Workaround datetime.datetime.strptime() thread-safety bug by calling
+# it once before starting threads.  https://bugs.python.org/issue7980
+datetime.datetime.strptime('1999-12-31_23:59:59', '%Y-%m-%d_%H:%M:%S')
+
+
 class Task(object):
     def __init__(self):
         self.starttime = None

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list