pub trait TaskHandler: Send + Sync {
// Required methods
fn handle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_tasks: &'life1 AppTasks,
job_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = TaskResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn description(&self) -> String;
fn is_retryable(&self, error: &str) -> bool;
}