@staticmethod<EOL><INDENT>def _build_job_arguments(task):<DEDENT>
job_args = {}<EOL>job_args['<STR_LIT>'] = Q_STORAGE_ITEMS<EOL>job_args['<STR_LIT>'] = task.task_id<EOL>job_args['<STR_LIT>'] = task.backend<EOL>backend_args = copy.deepcopy(task.backend_args)<EOL>if '<STR_LIT>' in backend_args:<EOL><INDENT>backend_args['<STR_LIT>'] = backend_args.pop('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in backend_args:<EOL><INDENT>backend_args['<STR_LIT>'] = backend_args.pop('<STR_LIT>')<EOL><DEDENT>job_args['<STR_LIT>'] = backend_args<EOL>job_args['<STR_LIT>'] = task.category<EOL>archiving_cfg = task.archiving_cfg<EOL>job_args['<STR_LIT>'] = archiving_cfg.to_dict() if archiving_cfg else None<EOL>sched_cfg = task.scheduling_cfg<EOL>job_args['<STR_LIT>'] = sched_cfg.max_retries if sched_cfg else MAX_JOB_RETRIES<EOL>return job_args<EOL>
Build the set of arguments required for running a job