def run(self):
		""" Run the current module (start greenlets) """
		# check for previous crash
		if os.access(self.pidfile, os.F_OK):
			pid = open(self.pidfile, 'r').readline()

			if osp.exists('/proc/' + pid):
				logging.warn("%s already running with pid %s" % (self.name, pid))
				return
			else:
				logging.warn(self.name % "%s seems to have crashed.. deleting pidfile")
				os.remove(self.pidfile)

		# run all jobs
		with self:
			try:
				self.jobs.join()
			except KeyboardInterrupt:
				self.jobs.kill()
				# zmq.Context.instance().term()
dataset/ETHPy150Open alexcepoi/pyscale/pyscale/lib/module.py/BaseModule.run/swapped operands of `%`