def METHOD_NAME(jobs: typing.List[Job]):
    """
    Mark the given jobs as cancelled.
    This is used as the SIGINT handler.
    Args:
        jobs: A list of Jobs which will have their cancelled attribute set to True.
    """
    for job in jobs:
        if job.returncode is None:
            job.cancelled = True