I am trying to submit jobs using Python, and there is some JSON in the arguments. I am trying to use classad.quote to make these json strings understandable by Condor, but it does not look like it has the desired effect. Here is what I am doing:
job
= {
"executable": executable,
# Executable
"transfer_executable":
False,
# The executable is expected to be present in the docker image
"arguments": arguments,
# Arguments for the executable
"universe":
"docker",
# Run job in Docker container
"docker_image": docker_image,
# Docker image to be used
"environment":
self.convert_envvars(),
# Set the environment variables in container
"should_transfer_files":
"YES",
# Enable file transfer
"transfer_input_files": inputs,
# Transfer files
"output":
self.stdout_filename,
# File where the stdout of the container will be written
"error":
self.stderr_filename, #
File where the stderr of the container will be written } But then I get: ERROR:root:Condor Job Submission failed: Found illegal unescaped double-quote After playing around a bit, it looks like the classad.quote function does not do what it is supposed to do: Isn’t it supposed to escape all “ characters and surround everything with ‘ ’ ? Thanks, Gaëtan Geffroy
Attention: |