def get_job_status(api_key: str, owner: str, project: str,
job_id: str) -> Tuple[SimStatus, str]:
"""Get the status of a job from Pollination.
api_key: The API key of the user.
owner: The owner of the Pollination account.
project: The name of the project inside which the job was created.
job_id: The id of the job.
- URL of the job on Pollination.
client=ApiClient(api_token=api_key))
url = f'https://app.pollination.cloud/projects/{owner}/{project}/jobs/{job_id}'
if job.status.status in [
JobStatusEnum.pre_processing,
return SimStatus.INCOPLETE, url
elif job.status.status == JobStatusEnum.failed:
return SimStatus.FAILED, url
elif job.status.status == JobStatusEnum.cancelled:
return SimStatus.CANCELLED, url
return SimStatus.COMPLETE, url