Enhance job logging and UI updates
- Implement job logging functionality to track progress and events for each job. - Add a new section in the job card to display session logs with detailed entries. - Update job statistics to include pages fetched, pages found, and assets processed. - Modify the UI theme and text for better clarity and aesthetics. - Adjust tests to validate new logging features and ensure proper event handling.
This commit is contained in:
@@ -255,7 +255,7 @@ class Database:
|
||||
FROM job_events
|
||||
WHERE job_id = ? AND id > ?
|
||||
ORDER BY id ASC
|
||||
LIMIT 100
|
||||
LIMIT 250
|
||||
""",
|
||||
(job_id, after_id),
|
||||
).fetchall()
|
||||
@@ -382,6 +382,7 @@ class Database:
|
||||
message: str,
|
||||
stats: dict[str, int],
|
||||
warnings: list[str] | None = None,
|
||||
detail: dict[str, object] | None = None,
|
||||
) -> bool:
|
||||
now = utcnow()
|
||||
values = {
|
||||
@@ -426,6 +427,7 @@ class Database:
|
||||
"message": message,
|
||||
"stats": stats,
|
||||
"warnings": warnings or [],
|
||||
"detail": detail,
|
||||
},
|
||||
)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user