You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your question related to a specific version? If so, please specify:
4.x
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
Python
Question
Is there any way to get error detail about "No job functions found" reason.
When language worker failed to indexing due to application code side issue, we can see below traces table log, but we could not get detail about why worker failed to indexing functions.
No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
When I run same code localy, I could below detailed error in console.
[2023-11-14T04:58:01.253Z] Received WorkerInitRequest, python version 3.9.17 (main, Jun 6 2023, 23:29:09)
[2023-11-14T04:58:01.253Z] [GCC 10.2.1 20210110], worker version 4.14.0, request ID 6b7e54f3-5c90-4352-b48a-8bfb3a78d6aa
[2023-11-14T04:58:01.589Z] Received WorkerMetadataRequest, request ID 6b7e54f3-5c90-4352-b48a-8bfb3a78d6aa, directory: /workspaces/2311070060002842_pyDatablick
[2023-11-14T04:58:01.601Z] Error in index_function_app. Sys Path: ['/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64', '/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/workspaces/2311070060002842_pyDatablick/.venv/lib/python3.9/site-packages', <omitting due to github side maximum is 65536 characters>
[2023-11-14T04:58:01.607Z] Worker failed to index functions
[2023-11-14T04:58:01.607Z] Result: Failure
[2023-11-14T04:58:01.607Z] Exception: ImportError: cannot import name 'sql' from 'databricks' (/workspaces/2311070060002842_pyDatablick/.venv/lib/python3.9/site-packages/databricks/__init__.py). Troubleshooting Guide: https://aka.ms/functions-modulenotfound
[2023-11-14T04:58:01.607Z] Stack: File "/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 338, in _handle__functions_metadata_request
[2023-11-14T04:58:01.607Z] fx_metadata_results = self.index_functions(function_path)
[2023-11-14T04:58:01.607Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 607, in index_functions
[2023-11-14T04:58:01.607Z] indexed_functions = loader.index_function_app(function_path)
[2023-11-14T04:58:01.607Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 48, in call
[2023-11-14T04:58:01.607Z] raise extend_exception_message(e, message)
[2023-11-14T04:58:01.607Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 44, in call
[2023-11-14T04:58:01.607Z] return func(*args, **kwargs)
[2023-11-14T04:58:01.607Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.9/LINUX/X64/azure_functions_worker/loader.py", line 151, in index_function_app
[2023-11-14T04:58:01.607Z] imported_module = importlib.import_module(module_name)
[2023-11-14T04:58:01.608Z] File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
[2023-11-14T04:58:01.608Z] return _bootstrap._gcd_import(name[level:], package, level)
[2023-11-14T04:58:01.608Z] File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
[2023-11-14T04:58:01.608Z] File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
[2023-11-14T04:58:01.608Z] File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
[2023-11-14T04:58:01.608Z] File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
[2023-11-14T04:58:01.608Z] File "<frozen importlib._bootstrap_external>", line 850, in exec_module
[2023-11-14T04:58:01.608Z] File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
[2023-11-14T04:58:01.608Z] File "/workspaces/2311070060002842_pyDatablick/function_app.py", line 4, in <module>
[2023-11-14T04:58:01.608Z] from databricks import sql
[2023-11-14T04:58:01.608Z] .
[2023-11-14T04:58:01.613Z] 0 functions found
[2023-11-14T04:58:01.625Z] 0 functions loaded
[2023-11-14T04:58:01.627Z] Looking for extension bundle Microsoft.Azure.Functions.ExtensionBundle at /home/vscode/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle
[2023-11-14T04:58:01.627Z] Found a matching extension bundle at /home/vscode/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.24.0
I tried below logging setting, but didn't get the expected output on traces and exceptions table.
Is your question related to a specific version? If so, please specify:
4.x
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
Python
Question
Is there any way to get error detail about "No job functions found" reason.
When language worker failed to indexing due to application code side issue, we can see below
traces
table log, but we could not get detail about why worker failed to indexing functions.When I run same code localy, I could below detailed error in console.
I tried below logging setting, but didn't get the expected output on
traces
andexceptions
table.I think below
_workerChannelLogger
is related. Is there any configurable way about this logger?azure-functions-host/src/WebJobs.Script.Grpc/Channel/GrpcWorkerChannel.cs
Line 859 in 8577fbe
The text was updated successfully, but these errors were encountered: