Fetch job results if a job is finished
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -974,6 +974,22 @@ impl AppService {
|
||||
.await
|
||||
}
|
||||
|
||||
/// Bypass-permission variant to merge into a job's result field.
|
||||
/// Intended for internal router/scheduler use where no actor identity is present.
|
||||
pub async fn update_job_result_merge_unchecked(
|
||||
&self,
|
||||
context_id: u32,
|
||||
caller_id: u32,
|
||||
job_id: u32,
|
||||
patch: HashMap<String, String>,
|
||||
) -> Result<(), BoxError> {
|
||||
// Ensure job exists, then write directly
|
||||
let _ = self.redis.load_job(context_id, caller_id, job_id).await?;
|
||||
self.redis
|
||||
.update_job_result_merge(context_id, caller_id, job_id, patch)
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn append_message_logs(
|
||||
&self,
|
||||
context_id: u32,
|
||||
|
Reference in New Issue
Block a user