scripts/parse_nagim.py
def _add_batch_job(cmd: str, hbatch, job_name: str):
    """
    Add cmd as a Batch job.
    """
    j = hbatch.new_job(job_name)
    j.cpu(32)
    j.memory('lowmem')
    j.image('australia-southeast1-docker.pkg.dev/cpg-common/images/aspera:v1')
    j.command('export GOOGLE_APPLICATION_CREDENTIALS=/gsa-key/key.json')
    j.command(
        'gcloud -q auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS'
    )
    j.command(cmd)
    return j

    Add cmd as a Batch job.
    
Add cmd as a Batch job.
Add cmd as a Batch job .
def _add_batch_job(cmd: str, hbatch, job_name: str):
    j = hbatch.new_job(job_name)
    j.cpu(32)
    j.memory('lowmem')
    j.image('australia-southeast1-docker.pkg.dev/cpg-common/images/aspera:v1')
    j.command('export GOOGLE_APPLICATION_CREDENTIALS=/gsa-key/key.json')
    j.command(
        'gcloud -q auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS'
    )
    j.command(cmd)
    return j
def _add_batch_job ( cmd : str , hbatch , job_name : str ) : j = hbatch . new_job ( job_name ) j . cpu ( 32 ) j . memory ( 'lowmem' ) j . image ( 'australia-southeast1-docker.pkg.dev/cpg-common/images/aspera:v1' ) j . command ( 'export GOOGLE_APPLICATION_CREDENTIALS=/gsa-key/key.json' ) j . command ( 'gcloud -q auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS' ) j . command ( cmd ) return j
Add cmd as a Batch job.
Add cmd as a Batch job .
"""
    Add cmd as a Batch job.
    """
cmd
str
hbatch
job_name
str