pub async fn create_task( pool: &Arc<PgPool>, task: &Task, user_id: &UserId, session_id: &SessionId, trace_id: &TraceId, agent_name: &str, ) -> Result<String, RepositoryError>