Skip to content

Commit bd06e5c

Browse files
committed
(fix): GMT version in cluster was only for cron subdirectory. Not for whole repo
1 parent 4c4e252 commit bd06e5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cron/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
# We currently have this dynamically as it will probably change quite a bit
2424
STATUS_LIST = ['cooldown', 'warmup', 'job_no', 'job_start', 'job_error', 'job_end', 'maintenance_start', 'maintenance_end', 'maintenance_error', 'measurement_control_start', 'measurement_control_end', 'measurement_control_error']
25-
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
25+
26+
GMT_ROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../')
2627

2728
def set_status(status_code, data=None, run_id=None):
2829
if not hasattr(set_status, "last_status"):
@@ -50,7 +51,7 @@ def set_status(status_code, data=None, run_id=None):
5051
WHERE id = %s
5152
"""
5253

53-
gmt_hash, gmt_timestamp = get_repo_info(CURRENT_DIR)
54+
gmt_hash, gmt_timestamp = get_repo_info(GMT_ROOT_DIR)
5455

5556
params = (
5657
status_code,

0 commit comments

Comments
 (0)