Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -148,7 +148,7 @@ def sync_progress_value(job_id):
|
|
| 148 |
result = response.json()
|
| 149 |
logger.info(f'sync_progress_value: {result}')
|
| 150 |
|
| 151 |
-
if result["progress"] is not None and result["progress"]
|
| 152 |
update_progress_status(job_id=job_id, progress_status="GENERATING", progress_value=result["progress"])
|
| 153 |
except Exception as e:
|
| 154 |
logger.exception(f'sync_progress_value: Exception {e}')
|
|
|
|
| 148 |
result = response.json()
|
| 149 |
logger.info(f'sync_progress_value: {result}')
|
| 150 |
|
| 151 |
+
if result["progress"] is not None and result["progress"] > 0.01:
|
| 152 |
update_progress_status(job_id=job_id, progress_status="GENERATING", progress_value=result["progress"])
|
| 153 |
except Exception as e:
|
| 154 |
logger.exception(f'sync_progress_value: Exception {e}')
|