This message was deleted.
# ask-marvin
s
This message was deleted.
m
Your message was too long by 527 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
Flow 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[
m
@Marvin Flow 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 prefect.deployments import Deployment from prefect_azure.blob_storage import AzureBlobStorageContainer from pricescrap.main import run_spider azure_blob_storage_container_block = AzureBlobStorageContainer.load( "rai-default-flows-storage" ) Deployment.build_from_flow( flow=run_spider, name="price-scrap", work_pool_name="default-agent-pool", work_queue_name="product-scrap", storage=azure_blob_storage_container_block, apply=True, path=f"price-scrap-store-4", ) and main.py @flow(name="Price Scrapper") def run_spider( example_product_page: Optional[str] = None, consent_button_ids: Optional[Sequence[str]] = None, selenium: bool = False, ): print("I do stuff here") def serve(): run_spider.serve("price-scrap")
m
Your message was too long by 191 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
Flow 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
m
@Marvin Flow 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 = AzureBlobStorageContainer.load( "rai-default-flows-storage" ) Deployment.build_from_flow( flow=run_spider, name="price-scrap", work_pool_name="default-agent-pool", work_queue_name="product-scrap", storage=azure_blob_storage_container_block, apply=True, path=f"price-scrap-store-4", ) and main.py @flow(name="Price Scrapper") def run_spider(): print("I do stuff here") def serve(): run_spider.serve("price-scrap")
m
Your message was too long by 120 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
Flow 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
m
@Marvin Flow 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 ... steps: - 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 = AzureBlobStorageContainer.load( "rai-default-flows-storage" ) Deployment.build_from_flow( flow=run_spider, name="price-scrap", work_pool_name="default-agent-pool", work_queue_name="product-scrap", storage=azure_blob_storage_container_block, apply=True, path=f"price-scrap-store-4", ) and main.py @flow(name="Price Scrapper") def run_spider(): print("I do stuff here") def serve(): run_spider.serve("price-scrap")