Link Search Menu Expand Document

WiFi Pineapple Python Job Runner

Table of contents

  1. Introduction
  2. Classes

Introduction

Python API

Classes

class JobRunner(Thread)

Methods

def run(self)
Call the `do_work` method on `self.job` and assign the results to `self.job.result`. If an exception is raised by the `do_work` method, catch it and set `self.job.error` equal to it. After `do_work` finishes set `self.job.is_complete` equal to True.
def stop(self)
Call the `stop` method on `self.job` if the job is running.