def job_pid_setter(this, value):
    """Try to save the pid while setting it to job.pid"""
    if value is None:
        return ''
    this.dir.joinpath('job.pid').write_text(str(value))
    return str(value)
