docstr: Args:
    job_address(str): Job address to which the new task connect.
    worker_heartbeat_address(str): Optional. The address to which the worker sends heartbeat signals.
    ping_heartbeat_address(str): the server address to which the client sends ping signals.
                                  The signal is used to check if the job is alive.
    worker_address(str): Worker's server address that receive command from the master.
    pid(int): Optional. Process id of the job.
    is_alive(True): Optional. This flag is used in worker to make sure that only alive jobs can be added into the worker_status.
    instance_id (str): Optional. The ID generated by the client, which represents the instance to which the job connects.
docstr_tok: ["Args",":","job_address","(","str",")",":","Job","address","to","which","the","new","task","connect",".","worker_heartbeat_address","(","str",")",":","Optional",".","The","address","to","which","the","worker","sends","heartbeat","signals",".","ping_heartbeat_address","(","str",")",":","the","server","address","to","which","the","client","sends","ping","signals",".","The","signal","is","used","to","check","if","the","job","is","alive",".","worker_address","(","str",")",":","Worker","'s","server","address","that","receive","command","from","the","master",".","pid","(","int",")",":","Optional",".","Process","id","of","the","job",".","is_alive","(","True",")",":","Optional",".","This","flag","is","used","in","worker","to","make","sure","that","only","alive","jobs","can","be","added","into","the","worker_status",".","instance_id","(","str",")",":","Optional",".","The","ID","generated","by","the","client",",","which","represents","the","instance","to","which","the","job","connects","."]
code: def __init__(
      self,
      job_address,
      worker_heartbeat_address,
      ping_heartbeat_address,
      worker_address,
      pid,
      job_id=None,
      log_server_address=None,
  ):
      """
      Args:
        job_address(str): Job address to which the new task connect.
        worker_heartbeat_address(str): Optional. The address to which the worker sends heartbeat signals.
        ping_heartbeat_address(str): the server address to which the client sends ping signals.
                                      The signal is used to check if the job is alive.
        worker_address(str): Worker's server address that receive command from the master.
        pid(int): Optional. Process id of the job.
        is_alive(True): Optional. This flag is used in worker to make sure that only alive jobs can be added into the worker_status.
        instance_id (str): Optional. The ID generated by the client, which represents the instance to which the job connects.
      """
      self.job_address = job_address
      self.worker_heartbeat_address = worker_heartbeat_address
      self.ping_heartbeat_address = ping_heartbeat_address
      self.worker_address = worker_address
      self.pid = pid
      self.is_alive = True
      self.job_id = job_id
      self.log_server_address = log_server_address
      self.allocated_cpu = None  # Record CPU(s) used in a job
      self.allocated_gpu = None  # Record GPU(s) used in a job
      self.instance_id = None
  
file_path: PARL/parl/remote/message.py
imports: import os
label_desc: Use image node_id 1 to create a new InitializedJob object from inherited base classes: object with example: obj = InitializedJob(job_address, worker_heartbeat_address, ping_heartbeat_address, worker_address, pid, job_id, log_server_address)