I'm trying to override the command passed to cloud...
# ask-community
r
I'm trying to override the command passed to cloud run job in order to properly activate right conda environment prior to flow execution, but it's not working! What i'm missing here? This is a snippet of my prefect.yaml file
Copy code
deployments:
- name: sample-deployment
  version: 1
  tags:
  - guide
  - tutorial
  - sample
  description: sample flow deployment from official doc
  schedule:
  entrypoint: flows/prefect-docker-guide-flow.py:get_repo_info
  parameters: {}
  infrastructure:
    type: cloud-run-job
    env: { }
    labels: { }
    name: null
    command:
      - /bin/bash
      - --login
      - -c
      - source /opt/conda/etc/profile.d/conda.sh && conda activate prefect
      - python
      - -m
      - prefect.engine
    stream_output: true
    working_dir: null
    block_type_slug: cloud-run-job
    _block_type_slug: cloud-run-job
  work_pool:
    name: my-pool
    job_variables:
      image: '{{ build_image.image }}'
    work_queue_name:
As shown here, the command overrides are not passed to the job.