https://prefect.io
Join Slack
<@ULVA73B9P> Is it possible to dynamically name a task? I have a defined task/function that gets exe...
c

Colton

about 1 year ago
@Marvin Is it possible to dynamically name a task? I have a defined task/function that gets executed multiple times in a flow. I Want the task in the UI to have a descriptor that includes information on the input arguments, is this possible?
c
m
  • 2
  • 3
  • 142
<@ULVA73B9P> I am using this yaml to do prefect `deploy --name my_pipeline`. How can I do the same ...
a

Adam

almost 2 years ago
@Marvin I am using this yaml to do prefect
deploy --name my_pipeline
. How can I do the same with a python script and not via the CLI?
# File for configuring project / deployment build, push and pull steps

# Generic metadata about this project
name: my-pipeline
prefect-version: 2.12.1

# build section allows you to manage and build docker images
build:
  - prefect_docker.projects.steps.build_docker_image:
      image_name: <http://mycompany.azurecr.io/dir/prefect-image|mycompany.azurecr.io/dir/prefect-image>
      tag: latest
      dockerfile: Dockerfile
      push: true
      credentials: "{{ prefect.blocks.docker-registry-credentials.my-cred }}"


# push section allows you to manage if and how this project is uploaded to remote locations
push: null

# pull section allows you to provide instructions for cloning this project in remote locations
pull:
  - prefect.projects.steps.git_clone_project:
      repository: <https://bitbucket.org/mycompany/repo.git>
      branch: master
      access_token: "{{ prefect.blocks.secret.bb-credentials }}"
  - prefect.projects.steps.set_working_directory:
      directory: /opt/prefect/repo

deployments:
  - name: my_pipeline
    description: TODO
    entrypoint: my_pipeline/my_pipeline.py:my_flow
    parameters: {}
    work_pool:
      job_variables:
        image: "{{ image_name }}"
      name: worker_pool
      work_queue_name: default
a
m
  • 2
  • 2
  • 142
<@ULVA73B9P> is it possible to set nodeSelector and tolerants on a work pool so that all flows descr...
k

Kiley Roberson

almost 2 years ago
@Marvin is it possible to set nodeSelector and tolerants on a work pool so that all flows described in my prefect.yaml that are associated with that work pool will be scheduled on a specified node pool?
k
m
  • 2
  • 3
  • 143
Is there a callback for when a flow starts? I see there are callbacks for <on_completion and on_fail...
j

jack

over 2 years ago
Is there a callback for when a flow starts? I see there are callbacks for on_completion and on_failure
j
c
  • 2
  • 2
  • 142
Hey, does anyone in the community did incremental etl with Prefect ? We are considering doing it and...
f

Florian Guily

about 3 years ago
Hey, does anyone in the community did incremental etl with Prefect ? We are considering doing it and maybe there are mistakes that can be avoided ^^ Thanks !
f
n
+2
  • 4
  • 10
  • 142
Is this heartbeat configuration only applicable to Prefect cloud setups? <https://docs.prefect.io/or...
m

Matthew Roeschke

about 3 years ago
Is this heartbeat configuration only applicable to Prefect cloud setups? https://docs.prefect.io/orchestration/concepts/services.html#heartbeat-configuration I have a (expected) long running job on a Prefect server setup trying to not have the zombie killer terminate the job:
No heartbeat detected from the remote task; marking the run as failed.
m
k
  • 2
  • 15
  • 142
Have you seen this issue when launching jobs from the ECS Agent? I'm troubleshooting and not sure wh...
a

Adam Roderick

over 3 years ago
Have you seen this issue when launching jobs from the ECS Agent? I'm troubleshooting and not sure where to start with it. botocore doesn't like something about the parameters. Prefect version is 1.0
a
k
  • 2
  • 11
  • 142
Hi, a newbie question… If the trigger for all tasks in a flow is “all successful”, and one of the up...
j

Jasono

over 4 years ago
Hi, a newbie question… If the trigger for all tasks in a flow is “all successful”, and one of the upstream task fails, all of the downstream tasks are “trigger failed” (even if the upstream failed task is restarted and succeeds). This forces me to restart the trigger-failed tasks one by one. Is this the intended behavior? or am I missing something? Should I change the trigger to “all finished” in order to avoid this manual restarting of the downstream tasks when one of the upstream tasks fails at least once?
j
c
  • 2
  • 38
  • 142
Ok so I updated to the latest and I'm still getting this bug: ``` File "/home/dave/.cache/pypoetry/...
d

Dave Aitel

10 months ago
Ok so I updated to the latest and I'm still getting this bug:
File "/home/dave/.cache/pypoetry/virtualenvs/rustmonster-GKhQY2Y4-py3.10/lib/python3.10/site-packages/prefect/client/orchestration.py", line 219, in get_client
    server.start()
  File "/home/dave/.cache/pypoetry/virtualenvs/rustmonster-GKhQY2Y4-py3.10/lib/python3.10/site-packages/prefect/server/api/server.py", line 818, in start
    raise RuntimeError(error_message)
RuntimeError: Timed out while attempting to connect to ephemeral Prefect API server.
d
j
  • 2
  • 6
  • 141
<@ULVA73B9P> I don’t see my deployments or the flows on the dashboard, but I can see them when I go ...
a

Ajeel Ahmed

11 months ago
@Marvin I don’t see my deployments or the flows on the dashboard, but I can see them when I go to the cli and run
prefect deployment ls
what could be the problem?
a
m
  • 2
  • 12
  • 141
Previous313233Next

Prefect Community

Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.

Powered by