ownedJob( $request ) ); } /** * What the progress screen polls, usually while a tick is still running in another request. It reads * the progress files only: it takes no job lock and writes nothing, so it can neither wait for the work * nor hold it up. `since` is the last log line number the page already has. */ public function progress( Request $request ): Response { $job = $this->ownedJob( $request ); return Response::data( Progress::snapshot( $job, max( 0, $request->int( 'since' ) ) ) ); } public function cancel( Request $request ): Response { $job = $this->ownedJob( $request ); return Response::job( $this->runner->cancel( $job ) ); } }