Michael Z
10/13/2023, 10:20 PMAlexander Azzam
10/13/2023, 10:21 PMMichael Z
10/13/2023, 10:23 PMAlexander Azzam
10/13/2023, 10:27 PMMichael Z
10/13/2023, 10:31 PMMichael Z
10/13/2023, 10:33 PMAlexander Azzam
10/13/2023, 10:34 PMUriel Mandujano
10/13/2023, 11:12 PMMarc Lipoff
10/16/2023, 4:54 PMUriel Mandujano
10/16/2023, 5:34 PMMarc Lipoff
10/17/2023, 5:59 PMTraceback (most recent call last):
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/workdir/data_orchestration/flows/export_provider_opensearch/export_provider_opensearch.py", line 70, in <module>
class ProviderSearchIndex(OpensearchIndex):
File "/workdir/data_orchestration/flows/export_provider_opensearch/export_provider_opensearch.py", line 80, in ProviderSearchIndex
@validator("version")
^^^^^^^^^^^^^^^^^^^^
File "pydantic/class_validators.py", line 93, in pydantic.class_validators.validator.dec
File "pydantic/class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "__prefect_loader__.ProviderSearchIndex.set_version"; if this is intended, set `allow_reuse=True`
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/prefect/cli/_utilities.py", line 41, in wrapper
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/utilities/asyncutils.py", line 255, in coroutine_wrapper
return call()
^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 382, in __call__
return self.result()
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 282, in result
return self.future.result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 168, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 345, in _run_async
result = await coro
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/cli/deploy.py", line 290, in deploy
await _run_single_deploy(
File "/usr/local/lib/python3.11/site-packages/prefect/client/utilities.py", line 51, in with_injected_client
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/cli/deploy.py", line 379, in _run_single_deploy
flow = await run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/flows.py", line 1172, in load_flow_from_entrypoint
flow = import_object(entrypoint)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 201, in import_object
module = load_script_as_module(script_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 164, in load_script_as_module
raise ScriptError(user_exc=exc, path=path) from exc
prefect.exceptions.ScriptError: Script at 'flows/export_provider_opensearch/export_provider_opensearch.py' encountered an exception: ConfigError('duplicate validator function "__prefect_loader__.ProviderSearchIndex.set_version"; if this is intended, set `allow_reuse=True`')
An exception occurred.
🚨 Error: The command exited with status 1
Marc Lipoff
10/18/2023, 4:55 PM