File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ resolution
39
39
40
40
- Fixed forks with same source process name.
41
41
- Fixed ` inspect ` issue when tasks took more than a day in duration.
42
+ - Added hardware address to ` inpsect ` and ` report ` hash.
42
43
43
44
## 1.3.1
44
45
Original file line number Diff line number Diff line change 1
1
import re
2
2
import os
3
3
import sys
4
+ import uuid
4
5
import time
5
6
import curses
6
7
import signal
@@ -1540,7 +1541,8 @@ def _get_run_hash(self):
1540
1541
# Get hash from the current working dir and hostname
1541
1542
workdir = self .workdir .encode ("utf8" )
1542
1543
hostname = socket .gethostname ().encode ("utf8" )
1543
- dir_hash = hashlib .md5 (workdir + hostname )
1544
+ hardware_addr = str (uuid .getnode ()).encode ("utf8" )
1545
+ dir_hash = hashlib .md5 (workdir + hostname + hardware_addr )
1544
1546
1545
1547
return pipeline_hash .hexdigest () + dir_hash .hexdigest ()
1546
1548
Original file line number Diff line number Diff line change 2
2
import re
3
3
import sys
4
4
import json
5
+ import uuid
5
6
import signal
6
7
import socket
7
8
import hashlib
@@ -195,7 +196,8 @@ def _get_report_id(self):
195
196
# Get hash from the current working dir and hostname
196
197
workdir = os .getcwd ().encode ("utf8" )
197
198
hostname = socket .gethostname ().encode ("utf8" )
198
- dir_hash = hashlib .md5 (workdir + hostname )
199
+ hardware_addr = str (uuid .getnode ()).encode ("utf8" )
200
+ dir_hash = hashlib .md5 (workdir + hostname + hardware_addr )
199
201
200
202
return pipeline_hash .hexdigest () + dir_hash .hexdigest ()
201
203
You can’t perform that action at this time.
0 commit comments