fix: log activity id for failed jobs

way easier to debug, also allows to select them back
This commit is contained in:
əlemi 2024-06-06 03:19:50 +02:00
parent 6df108254a
commit 90e4454d3e
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -113,7 +113,7 @@ impl JobDispatcher for Context {
}; };
if let Err(e) = res { if let Err(e) = res {
tracing::error!("failed processing job #{}: {e}", job.internal); tracing::error!("failed processing job '{}': {e}", job.activity);
let active = job.clone().repeat(); let active = job.clone().repeat();
if let Err(e) = model::job::Entity::insert(active) if let Err(e) = model::job::Entity::insert(active)
.exec(_ctx.db()) .exec(_ctx.db())