Skip to content

Re run job command on farm

Create temp python script

python
# coding=utf-8
"""
:mod:testing submit.py
===================================
.. module::
   :platform: Unix,
.. moduleauthor:: Dev
"""

# Python built-in modules import

# Third-party modules import

# Squeeze modules import

from sq_deadline_core.plugins.sqPythonRez import SqPythonRez
from sq_deadline_core.jobSubmitter import JobSubmitter

if __name__ == '__main__':
    job1 = SqPythonRez()
    job1.name = '[TEST TD] DEBUG'
    job1.pool = ''
    job1.priority = 99
    job1.cmd = 'source /squeeze/rez_software/logon_linux_pipeline.sh; <PASTE_HERE_FULL_COMMAND_OF_JOB>'
    job1.packages = 'sstk_bootstraps python-2'
    job1.white_list = '<BLADE_NAME_HERE>'
    job1.limits = None
    job1.batch_name = '[TEST TD] DEBUG'
#    job1.add_job_info('Frames', '1-100')
#    job1.add_job_info('ChunkSize', 5)

    submiter.add_job(job3)
    submiter.submit_job()

Run temp python script

bash
rez env sq_deadline_core -- python your_temp_script.py