Slackbot
07/25/2024, 4:28 PMMarvin
07/25/2024, 4:28 PMFlow run failed with "Submission failed. ValidationError: 1 validation error for Process\ncommand\n value is not a valid list (type=type_error.list)"First I tought it was related to how I pass list parameters for a deployment run in prefect UI. Then I made all params optional and just pass an empty json and I still get the same error. Do you know what this message could mean or point me in the right direction to fix it Here is my azure-pipelines.yml trigger: - main pool: vmImage: ubuntu-22.04 variables: artifactFeed: "Revenue.AI 2.0/CommodityTradingPackages" azureSubscription: "RAIAzureDevOpsToRAIAzureDevTestSubscription" azureContainerRegistry: coreshareddevweu001.azurecr.io imageName: scraping-flow tag: '$(Build.BuildNumber)' steps: - task: AzureCLI@1 displayName: Login to ACR inputs: azureSubscription: $(azureSubscription) scriptLocation: inlineScript inlineScript: | az acr login -n $(azureContainerRegistry) - task: PipAuthenticate@0 displayName: Authenticate with artifact feed inputs: artifactFeeds: $(artifactFeed) - bash: echo "##vso[
Matija
07/25/2024, 4:36 PMMarvin
07/25/2024, 4:36 PMFlow run failed with "Submission failed. ValidationError: 1 validation error for Process\ncommand\n value is not a valid list (type=type_error.list)"First I tought it was related to how I pass list parameters for a deployment run in prefect UI. Then I made all params optional and just pass an empty json and I still get the same error. Do you know what this message could mean or point me in the right direction to fix it Here is my azure-pipelines.yml trigger: - main pool: vmImage: ubuntu-22.04 variables: ... steps: - task: AzureCLI@1 ... - task: PipAuthenticate@0 ... - bash: echo "##vso[task.setvariable variable=PIP_EXTRA_INDEX_URL]${PIP_EXTRA_INDEX_URL:1}" displayName: Fix pip url - bash: python -m pip install -U pip setuptools displayName: Install build tools - bash: pip install -r requirements.txt displayName: Install requirements - bash: | export PYTHONPATH=$(pwd):$PYTHONPATH prefect cloud login --key pnu_ey1Jcb6Yp26oQLQIRfakehiY16GdsH42um3U --workspace 'rai-flows-dev/default' python scripts/deploy.py displayName: deploy flows and then here is the deploy.py from
Matija
07/25/2024, 4:38 PMMarvin
07/25/2024, 4:38 PMFlow run failed with "Submission failed. ValidationError: 1 validation error for Process\ncommand\n value is not a valid list (type=type_error.list)"Do you know what this message could mean? Flow fails to start, run_spider works localy Here is my azure-pipelines.yml trigger: - main pool: vmImage: ubuntu-22.04 variables: ... steps: - task: AzureCLI@1 ... - task: PipAuthenticate@0 ... - bash: echo "##vso[task.setvariable variable=PIP_EXTRA_INDEX_URL]${PIP_EXTRA_INDEX_URL:1}" displayName: Fix pip url - bash: python -m pip install -U pip setuptools displayName: Install build tools - bash: pip install -r requirements.txt displayName: Install requirements - bash: | export PYTHONPATH=$(pwd):$PYTHONPATH prefect cloud login --key pnu_ey1Jcb6Yp26oQLQIRfakehiY16GdsH42um3U --workspace 'rai-flows-dev/default' python scripts/deploy.py displayName: deploy flows and then here is the deploy.py from prefect.deployments import Deployment from prefect_azure.blob_storage import AzureBlobStorageContainer from pricescrap.main import run_spider azure_blob_storage_container_block = AzureBlob
Matija
07/25/2024, 4:40 PM