def set_job_status(
        self,
        job_id: str,
        status: JobStatus,
        error_message: Optional[str] = None,
        error_stack: Optional[str] = None,
    ) -> None:
        """Set the status of the given job."""
Set the status of the given job.
src/datachain/data_storage/metastore.py