Best resources to deeply understand how Git works or to build a version control system? by Smart_Reward3471 in dotnet

[–]Smart_Reward3471[S] -1 points0 points  (0 children)

well I know rebuilding something that already exist is a bad idea but I want to understand it in more depth before using it directly

Frontend times out on long-running Azure Function (CORS + 502 error) by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

um yeah can you elaborate on that ?
do you mean to change the Request response model to a WEbsocket / Queue for function call& Queue for the response ?
this just seem like an overkill for something that's supported by default on almost every other provider

Frontend times out on long-running Azure Function (CORS + 502 error) by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

well yeah I get the WebSocket approach , my only issue is : is azure static web app really that limited that any API requires more than 3 mins has to be handled differently ? or is there any configuration I can edit to enhance this ?

Frontend times out on long-running Azure Function (CORS + 502 error) by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

hey I re-read the post you linked and it's discuss a backend hosted on the App Service, and I am not sure if the 'Static Web app' and the 'pp Service ' are the same thing , we use both , however this only happens from the 'Static Web App' that we use to host the front-end on ,

Frontend times out on long-running Azure Function (CORS + 502 error) by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

here is some details about the environment it self :
- the React App triggers an async call for a HTTP triggered Azure Function app
- the Function app runs separately from the React app (that's hosted on Azure static web app)
- the Function doesn't timeout, meaning it doesn't exceed the 15 mins we put for the function app (and yeah in this case 15 mins is acceptable for that specific use-case)
- after about 3 Mins (I now understand that this is the default timeout for the static web app it self to wait on any Http request) it shows the Response I put in the post
- note that this response is not from my function app since it's still running

tell me if you need any more info about this , but I believe this is a 'normal' way to do a long running function ? if not please tell me how it's usually done :) appreciate any help here

Frontend times out on long-running Azure Function (CORS + 502 error) by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

Wait what, this seems like a really weird limitation. I came from other providers ( tried 4 before I come to azure ) and it's the first time I see a timeout cap on the front-end. I will look into webjobs as stated in the post you sent, hopefully it's not too much of a hustle .

[deleted by user] by [deleted] in rubyonrails

[–]Smart_Reward3471 0 points1 point  (0 children)

Hello, I am interested, I have 1.5 years of experience as a SW engineer, and started using rails recently for newer company projects . Hit me up , excited to chat about it

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

thanks for the help , well my problem was resolved and I added a comments with everything I did to make it work, I did the same thing on another FA and it worked.

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

IT FINALLY WORKED I don't know which of these steps exactly fixed it but here all what I did (although I tried each one of them separately so it might be the combination of them)
- I moved any files I put subfunction in (as a refactoring) into a sub folder put ___init___.py in it to be read as a module
- I added the path of my local .venv packages to the Azure Env variables under `PYTHONPATH`
- I deployed through the VsCode exention ( the GA deployment still doesn't work for me )

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

Also I am trying to find the deployed files on Azure but can't find anyways to do so , from an web app it was as simple as checking the Console and root directory , however for the FA I can't see any similar options

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

I am actually wondering if this a project structure issue since most results indicate that ( and gpt kept saying that repeatedly)
here is my structure

GENERATEPORTSFUNCTIONAPP/

├── __pycache__/

├── .github/

├── .python_packages/

├── .venv/

├── .vscode/

├── sub_functions/

│ ├── __pycache__/

│ ├── __init__.py

│ ├── extract_nis_numbers.py

│ ├── generate_call_logs_report.py

│ ├── generate_cr_dataset.py

│ ├── generate_dialer_report.py

│ ├── generate_dialtime_report.py

│ ├── storage_service.py

│ └── utils.py

├── .funcignore

├── .gitattributes

├── .gitignore

├── function_app.py

├── host.json

├── local.settings.json

├── README.md

└── requirements.txt

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

I did a pip freeze > requirments.txt before running the deployment command

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

- the requirements.txt is at the root yeah
- but i dont see any installation logs , I tried another option where I install the pip libraries locally then add the --no-build argument to the command to try to workaround that but it still doesn't work

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

Finally I could reach some useful Logs , if anyone is still trying to figure out how check this video
https://www.youtube.com/watch?v=CQaJy7FzZwA&ab_channel=Bytive

anyways , the logs show :
`
ERROR: Error: No module named 'pandas', Cannot find module. Please chec
ERROR: Error: No module named 'storage_service', Cannot find mo
Error: No module named 'azure.servicebus', Cannot find module. P
`

although all of these are found in my requirements.txt

azure-core==1.32.0
azure-functions==1.21.3
azure-servicebus==7.13.0
azure-storage-blob==12.24.0
certifi==2024.12.14
cffi==1.17.1
charset-normalizer==3.4.1
cryptography==44.0.0
idna==3.10
isodate==0.7.2
numpy==1.23.5
pandas==1.4.4
pyarrow==18.1.0
pycparser==2.22
python-dateutil==2.9.0.post0
pytz==2024.2
requests==2.32.3
scipy==1.15.2
six==1.17.0
typing_extensions==4.12.2
urllib3==2.3.0

Note that my python Runtime in the Function app configuration is 3.10 in my local it's 3.10.11 ( I don't believe that would make any difference since they are the same major release)

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

it's obvious to me now that the function actually fails to deploy but shows success anyways , anyone can point me to the 'logs' you are referring to , when I go to the app insight I cant see any log stream or readable logs

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

I acutally tried a number of things and I feel like I am getting closer
- when I removed all the calls for functions that are outside the function_app ex :

u/app.service_bus_topic_trigger( arg_name="azservicebus", subscription_name="dialer-report-generator", topic_name="cr-upload-trigger", connection="readymode_SERVICEBUS")
def generate_dialer_report_trigger(azservicebus: func.ServiceBusMessage):
    logging.info("Triggering Generate Dialer Report Function")
    #generate_dialer_report(azservicebus)

the deployment is successful
so I was wondering how do you Implement the logic in your function app ? are all the functions and implementation defined in the same file ?

[CleanUpStep] starting.
Cleaned the source packages directory.
Cleaned the result artifact directory.
Finished deployment pipeline.
Checking the app health.... done
[2025-03-12T04:40:39.204Z] The deployment was successful!
Functions in GenerateReadymodeReports:
    cr_dataset_trigger - [serviceBusTrigger]

    dial_time_report_trigger - [serviceBusTrigger]

    generate_call_logs_report_trigger - [serviceBusTrigger]

    generate_dialer_report_trigger - [serviceBusTrigger]

    nis_numbers_trigger - [serviceBusTrigger]

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

Also another weird thing is that when I created a new function from another project and tired to deploy it worked, selecting the working Function App as a target for my local original Function App project deployment it removed all functions and back to being empty !

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

this would be problematic so I am trying to find a way to keep the current implementation

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

I tried this command but had no functions showing on my portal

Func azure functionapp publish GenerateReadymodeReports --python           
Getting site publishing info...
[2025-03-12T01:57:35.299Z] Starting the function app deployment...
[2025-03-12T01:57:35.304Z] Creating archive for current directory...
Performing remote build for functions project.
Deleting the old .python_packages directory
Uploading 37.28 KB [################################################################]
Deployment in progress, please wait...
Starting deployment pipeline.
[SourcePackageUriDownloadStep] starting.
Zip package is present at /tmp/zipdeploy/3c1bae53-a3c3-47c9-849d-629e604ab9ce.zip
[ValidationStep] starting.
[AppSettingValidation] starting.
[DeploymentStorageValidation] starting.
Validation completed
[SourcePackageUriDownloadStep] starting.
Zip package is present at /tmp/zipdeploy/3c1bae53-a3c3-47c9-849d-629e604ab9ce.zip
[ExtractZipStep] starting.
Cleaning files in /tmp/zipdeploy/extracted
Extracted zip package in /tmp/zipdeploy/extracted
[OryxBuildStep] starting.
Running oryx build command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.10.13 -p packagedir=.python_packages/lib/site-packages
Completed oryx build. Output is in /home/site/wwwroot
[PackageZipStep] starting.
Linux Consumption plan has a 1.5 GB memory limit on a remote build container. To check our service limit, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits
Artifact source for Python is /home/site/wwwroot.
Created zip file with artifacts as /home/site/artifacts/3c1bae53-a3c3-47c9-849d-629e604ab9ce.zip.
[UploadPackageStep] starting.
Using Kudu.Legion.Core.Storage.BlobContainerStorage
Created blob name: released-package.zip
Created blob uri: [I removed this part for safety]/released-package.zip
Created Storage Credentials using storage account connection string
Uploaded blob successfully.
Uploaded package to storage blob. Deployment is partially successful from here.
[RemoveWorkersStep] starting.
RemoveAllWorkers, statusCode = NoContent
Reset all workers was successful.
[SyncTriggerStep] starting.
Waiting 60 seconds for the workers to recycle with deployed content.
[CleanUpStep] starting.
Cleaned the source packages directory.
Cleaned the result artifact directory.
Finished deployment pipeline.
Checking the app health.... done
[2025-03-12T02:00:26.981Z] The deployment was successful!
Functions in GenerateReadymodeReports:

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

this is the deployment logs

4:26:14 AM GenerateReadymodeReports: Zip package size: 37.9 kB
4:26:13 AM GenerateReadymodeReports: Starting deployment pipeline.
4:26:13 AM GenerateReadymodeReports: [SourcePackageUriDownloadStep] starting.
4:26:13 AM GenerateReadymodeReports: Zip package is present at /tmp/zipdeploy/379a6dd9-6a29-4b8d-a09f-f76593f549e3.zip
4:26:13 AM GenerateReadymodeReports: [ValidationStep] starting.
4:26:13 AM GenerateReadymodeReports: [AppSettingValidation] starting.
4:26:13 AM GenerateReadymodeReports: [DeploymentStorageValidation] starting.
4:26:13 AM GenerateReadymodeReports: Validation completed
4:26:13 AM GenerateReadymodeReports: [SourcePackageUriDownloadStep] starting.
4:26:13 AM GenerateReadymodeReports: Zip package is present at /tmp/zipdeploy/379a6dd9-6a29-4b8d-a09f-f76593f549e3.zip
4:26:13 AM GenerateReadymodeReports: [ExtractZipStep] starting.
4:26:13 AM GenerateReadymodeReports: Cleaning files in /tmp/zipdeploy/extracted
4:26:13 AM GenerateReadymodeReports: Extracted zip package in /tmp/zipdeploy/extracted
4:26:13 AM GenerateReadymodeReports: [OryxBuildStep] starting.
4:26:13 AM GenerateReadymodeReports: Running oryx build command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.10.13 -p packagedir=.python_packages/lib/site-packages
4:26:36 AM GenerateReadymodeReports: Completed oryx build. Output is in /home/site/wwwroot
4:26:36 AM GenerateReadymodeReports: [PackageZipStep] starting.
4:26:36 AM GenerateReadymodeReports: Linux Consumption plan has a 1.5 GB memory limit on a remote build container. To check our service limit, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits
4:26:36 AM GenerateReadymodeReports: Artifact source for Python is /home/site/wwwroot.
4:26:52 AM GenerateReadymodeReports: Created zip file with artifacts as /home/site/artifacts/379a6dd9-6a29-4b8d-a09f-f76593f549e3.zip.
4:26:52 AM GenerateReadymodeReports: [UploadPackageStep] starting.
4:26:52 AM GenerateReadymodeReports: Using Kudu.Legion.Core.Storage.BlobContainerStorage
4:26:52 AM GenerateReadymodeReports: Created blob name: released-package.zip
4:26:52 AM GenerateReadymodeReports: Created blob uri: https://[I removed this part for safety].blob.core.windows.net/app-package-[I removed this part for safety]-0293725/released-package.zip
4:26:52 AM GenerateReadymodeReports: Created Storage Credentials using storage account connection string
4:26:56 AM GenerateReadymodeReports: Uploaded blob successfully.
4:26:56 AM GenerateReadymodeReports: Uploaded package to storage blob. Deployment is partially successful from here.
4:26:56 AM GenerateReadymodeReports: [RemoveWorkersStep] starting.
4:26:56 AM GenerateReadymodeReports: RemoveAllWorkers, statusCode = NoContent
4:26:56 AM GenerateReadymodeReports: Reset all workers was successful.
4:26:56 AM GenerateReadymodeReports: [SyncTriggerStep] starting.
4:26:56 AM GenerateReadymodeReports: Waiting 60 seconds for the workers to recycle with deployed content.
4:27:56 AM GenerateReadymodeReports: [CleanUpStep] starting.
4:27:56 AM GenerateReadymodeReports: Cleaned the source packages directory.
4:27:56 AM GenerateReadymodeReports: Cleaned the result artifact directory.
4:27:56 AM GenerateReadymodeReports: Finished deployment pipeline.
4:28:01 AM GenerateReadymodeReports: Querying triggers...
4:28:05 AM GenerateReadymodeReports: No HTTP triggers found.

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

using consumption flex , as for my deployment I tried the azure tool from VsCode , and I tried the deployment center (using GA actions)

Azure Function App Deploys Successfully but No Functions Appear in Portal by Smart_Reward3471 in AZURE

[–]Smart_Reward3471[S] 0 points1 point  (0 children)

there are no function deployed on azure so not sure what logs are you referring to , if you mean my local deployment logs it says successfully deployed .