Skip to content

Commit

Permalink
Use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
IceKhan13 committed Oct 6, 2023
1 parent f66d6e9 commit 60e8cf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/quantum_serverless/core/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
ENV_GATEWAY_PROVIDER_VERSION,
GATEWAY_PROVIDER_VERSION_DEFAULT,
MAX_ARTIFACT_FILE_SIZE_MB,
ENV_JOB_ARGUMENTS,
)
from quantum_serverless.core.program import Program
from quantum_serverless.exception import QuantumServerlessException
Expand Down Expand Up @@ -137,7 +138,7 @@ def run(self, program: Program, arguments: Optional[Dict[str, Any]] = None):
env_vars = {
**(program.env_vars or {}),
**{OT_PROGRAM_NAME: program.title},
**{"ENV_JOB_ARGUMENTS": json.dumps(arguments, cls=QiskitObjectsEncoder)},
**{ENV_JOB_ARGUMENTS: json.dumps(arguments, cls=QiskitObjectsEncoder)},
}

job_id = self._job_client.submit_job(
Expand Down

0 comments on commit 60e8cf8

Please sign in to comment.