)]}'
{"watcher/decision_engine/audit/continuous.py":[{"author":{"_account_id":21692,"name":"licanwei","email":"li.canwei2@zte.com.cn","username":"licanwei"},"change_message_id":"529161461194e0ad43b7fed8285a4daf6961e4b7","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                    if job.name \u003d\u003d \u0027execute_audit\u0027 and"},{"line_number":69,"context_line":"                    job.args[0].uuid \u003d\u003d audit.uuid]"},{"line_number":70,"context_line":"            if jobs:"},{"line_number":71,"context_line":"                self.scheduler.remove_job(jobs[0].id)"},{"line_number":72,"context_line":"            return True"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"5fc1f717_ae06ca1b","line":71,"range":{"start_line":71,"start_character":16,"end_line":71,"end_character":53},"updated":"2019-04-02 06:20:27.000000000","message":"Are you sure you catch the bug? I don\u0027t think there are different. \nhttps://apscheduler.readthedocs.io/en/latest/userguide.html#removing-jobs","commit_id":"82aee184259b2114b43912d8ada0dc24e91ef2dd"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"659aa3f26457bfb884e22de64dea8a1461c01751","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                    if job.name \u003d\u003d \u0027execute_audit\u0027 and"},{"line_number":69,"context_line":"                    job.args[0].uuid \u003d\u003d audit.uuid]"},{"line_number":70,"context_line":"            if jobs:"},{"line_number":71,"context_line":"                self.scheduler.remove_job(jobs[0].id)"},{"line_number":72,"context_line":"            return True"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fb8cfa7_36dc8f73","line":71,"range":{"start_line":71,"start_character":16,"end_line":71,"end_character":53},"in_reply_to":"5fc1f717_ae06ca1b","updated":"2019-06-03 17:32:58.000000000","message":"Agree, it looks like the problem is the job is no longer registered - maybe the scheduler in this case is new? I\u0027m not sure how this works or if the jobs are persisted, or maybe there is a race to cleanup elsewhere, but you could use https://apscheduler.readthedocs.io/en/latest/modules/schedulers/base.html#apscheduler.schedulers.base.BaseScheduler.get_job to see if the job exists by id before removing it.","commit_id":"82aee184259b2114b43912d8ada0dc24e91ef2dd"},{"author":{"_account_id":21692,"name":"licanwei","email":"li.canwei2@zte.com.cn","username":"licanwei"},"change_message_id":"6da0d8ca4f18099cc1325b45d39f9c7b3dde4a06","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                    if job.name \u003d\u003d \u0027execute_audit\u0027 and"},{"line_number":69,"context_line":"                    job.args[0].uuid \u003d\u003d audit.uuid]"},{"line_number":70,"context_line":"            if jobs:"},{"line_number":71,"context_line":"                self.scheduler.remove_job(jobs[0].id)"},{"line_number":72,"context_line":"            return True"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fb8cfa7_ca543124","line":71,"range":{"start_line":71,"start_character":16,"end_line":71,"end_character":53},"in_reply_to":"9fb8cfa7_36dc8f73","updated":"2019-06-06 02:17:00.000000000","message":"the error in apscheduler:\nERROR apscheduler.executors.default File \"/usr/lib/python2.7/site-packages/apscheduler/job.py\", line 82, in remove\nERROR apscheduler.executors.default self._scheduler.remove_job(self.id, self._jobstore_alias)\nERROR apscheduler.executors.default AttributeError: \u0027NoneType\u0027 object has no attribute \u0027remove_job\u0027\n\nIt seems that self._scheduler is None because of some unknown reason.\nhttps://github.com/agronholm/apscheduler/blob/master/apscheduler/job.py#L108","commit_id":"82aee184259b2114b43912d8ada0dc24e91ef2dd"}]}
