From bc33276e3ddd7e590775428b3e9a6e5d8fb2d41e Mon Sep 17 00:00:00 2001 From: Ryan Saweczko Date: Tue, 25 Mar 2025 16:21:56 -0400 Subject: [PATCH] Don't serialize URL arguments so worker knows to fetch them as remote URLs --- dcp/api/job.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dcp/api/job.py b/dcp/api/job.py index 9822cc1..ac89f49 100644 --- a/dcp/api/job.py +++ b/dcp/api/job.py @@ -105,6 +105,9 @@ def _before_exec(self, *args, **kwargs): # un-hide values from PythonMonkey which aren't supported if isinstance(argument, dict) and '__pythonmonkey_guard' in argument: argument = argument['__pythonmonkey_guard'] + if utils.instanceof(argument, pm.eval("URL")): + serialized_arguments.append(argument) + continue serialized_argument = serialize(argument, self.serializers) serialized_arguments.append(serialized_argument)