@@ -752,7 +752,7 @@ def _executing_thread(self):
752
752
# enable_logging_to_file("rust_debug.log")
753
753
754
754
self .evaluator .debug_is_finished ()
755
- Path ("debug .txt" ).write_text (
755
+ Path ("ppg_evaluator_debug .txt" ).write_text (
756
756
self .evaluator .debug ()
757
757
)
758
758
# self.evaluator.reconsider_all_jobs() # if this helps' we're looking at a propagation failure. Somewhere.
@@ -781,9 +781,7 @@ def _executing_thread(self):
781
781
job .waiting = True
782
782
job .actual_cores_needed = - 1
783
783
self ._interactive_report ()
784
- job .start_time = (
785
- time .time ()
786
- ) # assign it just in case anything fails before acquiring the lock
784
+ job .start_time = time .time () # assign it just in case anything fails before acquiring the lock
787
785
job .stop_time = float ("nan" )
788
786
job .run_time = float ("nan" )
789
787
@@ -876,9 +874,7 @@ def _executing_thread(self):
876
874
outputs = None
877
875
raise error
878
876
879
- except (
880
- SystemExit
881
- ) as e : # pragma: no cover - happens in spawned process, and we don't get coverage logging for it thanks to os._exit
877
+ except SystemExit as e : # pragma: no cover - happens in spawned process, and we don't get coverage logging for it thanks to os._exit
882
878
log_trace (
883
879
"SystemExit in spawned process -> converting to hard exit"
884
880
)
@@ -953,6 +949,18 @@ def _executing_thread(self):
953
949
log_error (
954
950
f"Recording job success failed for { job_id } . Likely constraint violation?: Message was '{ e } '"
955
951
)
952
+ with self .evaluator_lock : # just so we don't mess up the file.
953
+ log_filename = (
954
+ self .job_graph .dir_config .error_dir
955
+ / self .job_graph .time_str
956
+ / "constraint_violations.jobs"
957
+ )
958
+ log_error (
959
+ f"Job id has been logged to { log_filename } \n . You might want to use ppg-filter-constraint-violations after fixing the problem."
960
+ )
961
+ with open (log_filename , "a" ) as op :
962
+ op .write (f"{ job_id } \n " )
963
+
956
964
self .job_outcomes [job_id ] = RecordedJobOutcome (
957
965
job_id , JobOutcome .Failed , str (e )
958
966
)
0 commit comments