code: public function handle($event): void
      {
          if (!$job = $this->deserialize($event->job)) {
              return;
          }
  
          $clientJob = $job->clientJob ?? null;
  
          if (!$clientJob instanceof AsynchronousProcess) {
              return;
          }
  
          $clientJob->processed($event->job);
      }
docs: Handle the event.
  
  @param JobProcessed|JobFailed $event
  @return void