load_background_task

Function load_background_task 

Source
pub async fn load_background_task(
    read_store: &dyn ThreadReader,
    mailbox_store: &dyn MailboxReader,
    id: &str,
) -> Result<Option<BackgroundTaskLookup>, ApiError>
Expand description

Look up a background task by run_id (RunStore) or entry_id (MailboxStore).

If the entry has been accepted, tries to find the corresponding RunRecord by extracting the run_id from the payload.