Unverified Commit b2b4f458 authored by fishyds's avatar fishyds Committed by GitHub
Browse files

Merge v0.2 branch back to master for PR #273 (#400)

* fix bugs due to ts.tailstream (#273)
parent 101b02ff
......@@ -22,6 +22,7 @@ import os
import json
import time
import json_tricks
import subprocess
from ..common import init_logger, env_args
......@@ -77,6 +78,7 @@ def send_metric(string):
assert len(data) < 1000000, 'Metric too long'
_metric_file.write(b'ME%06d%b' % (len(data), data))
_metric_file.flush()
subprocess.run(['touch', _metric_file.name], check = True)
def get_sequence_id():
return os.environ['NNI_TRIAL_SEQ_ID']
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment