better lifecycle visibility implementation.
This commit is contained in:
@@ -111,8 +111,8 @@ async def retry_download(download_id: int):
|
||||
if download.status != DownloadStatus.FAILED:
|
||||
return jsonify({"error": "Can only retry failed downloads"}), 400
|
||||
|
||||
# Reset status to pending
|
||||
download.status = DownloadStatus.PENDING
|
||||
# Reset status to queued
|
||||
download.status = DownloadStatus.QUEUED
|
||||
download.error_type = None
|
||||
download.error_message = None
|
||||
await session.commit()
|
||||
|
||||
Reference in New Issue
Block a user