def cancel(self, job_ids):
if self.linger is True:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return [False for x in job_ids]<EOL><DEDENT>try:<EOL><INDENT>self.client.terminate_instances(InstanceIds=list(job_ids))<EOL><DEDENT>except Exception as e:<EOL><INDENT>logger.error("<STR_LIT>".format(job_ids))<EOL>raise e<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>".format(job_ids))<EOL><DEDENT>for job_id in job_ids:<EOL><INDENT>self.resources[job_id]["<STR_LIT:status>"] = "<STR_LIT>"<EOL><DEDENT>for job_id in job_ids:<EOL><INDENT>self.instances.remove(job_id)<EOL><DEDENT>return [True for x in job_ids]<EOL>
Cancel the jobs specified by a list of job ids.

        Parameters
        ----------
        job_ids : list of str
            List of of job identifiers

        Returns
        -------
        list of bool
            Each entry in the list will contain False if the operation fails. Otherwise, the entry will be True.