### What problem does this PR solve? The lock is not released correctly when task_exectuor is abnormal ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):tags/v0.19.0
| REDIS_CONN.delete(consumer_name) | REDIS_CONN.delete(consumer_name) | ||||
| except Exception: | except Exception: | ||||
| logging.exception("report_status got exception") | logging.exception("report_status got exception") | ||||
| finally: | |||||
| redis_lock.release() | |||||
| await trio.sleep(30) | await trio.sleep(30) | ||||
| stop_event.wait(60) | stop_event.wait(60) | ||||
| except Exception: | except Exception: | ||||
| logging.warning("recover_pending_tasks got exception") | logging.warning("recover_pending_tasks got exception") | ||||
| finally: | |||||
| redis_lock.release() | |||||
| async def main(): | async def main(): |