edsl icon indicating copy to clipboard operation
edsl copied to clipboard

Add exception reporting to edsl

Open johnjosephhorton opened this issue 9 months ago • 0 comments

Add coop client feature to upload exceptions / telemetry. I had this in https://github.com/expectedparrot/edsl/blob/main/edsl/jobs/runners/JobsRunnerAsyncio.py but I'm removing it for now:

          #         from edsl.jobs.interviews.ReportErrors import ReportErrors
            #         full_task_history = TaskHistory(
            #             self.total_interviews, include_traceback=True
            #         )
            #         report = ReportErrors(full_task_history)
            #         upload = input(
            #             "Ok to upload errors to us? We can potentially help! (y/n): "
            #         )
            #         if upload == "y":
            #             report.get_email()
            #             report.upload()
            #             print("Errors are reported here: ", report.url)
        #         except Exception as e:
        #             pass

        # if results.task_history.has_exceptions and batch_mode:
        #     results.task_history.show_exceptions()

@apostolosfilippas telemetry/reporting settings should be handled in coop.

johnjosephhorton avatar May 07 '24 10:05 johnjosephhorton