• j

    Jason

    4 months ago
    I can't seem to get the task_run_name callable to work with mapped tasks. I'm using a method near identical to the example: https://docs.prefect.io/core/concepts/templating.html#callable-name-generators, but running the mapped task uses the method name instead of the string that's returned?
    j
    James Sopkin
    4 replies
    Copy to Clipboard
  • Danny Vilela

    Danny Vilela

    4 months ago
    Hi all! Is there a way to disable task checkpointing at
    Flow
    initialization? Or is the best way to unset
    prefect.config.flows.checkpointing
    before building the
    Flow
    ?
    Danny Vilela
    Anna Geller
    +1
    4 replies
    Copy to Clipboard
  • Jeffery Newburn

    Jeffery Newburn

    4 months ago
    In prefect 1.X what is the best way to execute a task only if the previous data retrieval task returned results? Like call an email task only if there is data to email.
    Jeffery Newburn
    Kevin Kho
    2 replies
    Copy to Clipboard
  • Mike Vanbuskirk

    Mike Vanbuskirk

    4 months ago
    I’ve got an issue with prefect v1 and the ECS agent: I’ve got a flow that’s spinning on
    Submitted for execution: Task arn:<task-arn>
    with no further logs generated. In cloudwatch, it only shows:
    2022-05-17T16:18:52.575-04:00	[2022-05-17 20:18:52,575] INFO - agent | Deploying flow run f2f45aac-ccfb-4bb9-88db-fb1d00426989 to execution environment...
    	2022-05-17T16:18:53.805-04:00	[2022-05-17 20:18:53,805] INFO - agent | Completed deployment of flow run f2f45aac-ccfb-4bb9-88db-fb1d00426989
    Mike Vanbuskirk
    Kevin Kho
    71 replies
    Copy to Clipboard
  • Jason Motley

    Jason Motley

    4 months ago
    Is this the right way to specify a specific url for a specific internal package? This is a part of the flow.run.config
    env={"EXTRA_PIP_PACKAGES": "mypackage--index-url=<https://my_url>"})
    Jason Motley
    Kevin Kho
    4 replies
    Copy to Clipboard
  • Leon Kozlowski

    Leon Kozlowski

    4 months ago
    Hi all, I have a flow run that I cancelled which still has a task that appears to be running for over 3 hours now, is there any way to force kill this through the UI?
    Leon Kozlowski
    Kevin Kho
    +1
    4 replies
    Copy to Clipboard
  • Horatiu Bota

    Horatiu Bota

    4 months ago
    hi community! i'm trying to run a flow on AWS ECS using the ECS run config (https://docs.prefect.io/api/latest/run_configs.html#ecsrun) but my flow get stuck in a submitted state (already checked-out https://discourse.prefect.io/t/why-is-my-flow-stuck-in-a-submitted-state/201). I can see in the AWS console that the ECS task fails because the run command is
    Command ["/bin/sh","-c","prefect execute flow-run"]
    (however i need to run prefect in bash with a conda environment activated). Is there any way to configure the ECS task to remove the
    ["/bin/sh/", "-c",]
    before the prefect command? My container is configured with the appropriate entrypoint, runs bash and activates conda at startup, but
    /bin/sh -c
    undoes that setup
    Horatiu Bota
    Kevin Kho
    9 replies
    Copy to Clipboard
  • Jessica Smith

    Jessica Smith

    4 months ago
    anyone seen this kind of error message before:
    prefect.exceptions.ClientError: [{'path': ['set_task_run_states'], 'message': 'State update failed for task run ID d253a979-2ad4-4add-9c60-e569d75758e6: provided a running state but associated flow run 165e6a96-0e0d-464b-9a85-fc97454b9375 is not in a running state.', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
    I have a flow that kicks off a few hundred flow runs, and it was working fine in a test environment, but I got this as soon as I tried to run it in a production environment
    Jessica Smith
    Kevin Kho
    4 replies
    Copy to Clipboard
  • Jeffery Newburn

    Jeffery Newburn

    4 months ago
    Howdy if I run
    datetime.now()
    inside of a flow, not a task will that update on each run?
    Jeffery Newburn
    Kevin Kho
    2 replies
    Copy to Clipboard
  • d

    Daniel Saxton

    4 months ago
    hi all, what's the best way to have a flow that's only triggered via API call (i assume this is possible)? say we're using Prefect Cloud
    d
    James Sopkin
    +1
    8 replies
    Copy to Clipboard