• Fabrice Toussaint

    Fabrice Toussaint

    1 year ago
    Hi guys (and girls), Currently we are using Prefect server with 1 agent and a default Dask executor with Dask scheduler and workers. We are running into problems with using local imports and then registering these imports in our flow. We get a "ModuleNotFoundError" for the given module, for example:
    from test.package1 import test1
    Would result into "ModuleNotFoundError: No module named 'test'". We are not using Docker images thus on registering we want this to be resolved instead of installing our package somewhere, which we constantly need to update. The same issue happens here https://github.com/PrefectHQ/prefect/issues/2797 except here they are using Docker images, while we are not.
    Fabrice Toussaint
    Kevin Kho
    3 replies
    Copy to Clipboard
  • d

    Danielle Dalton

    1 year ago
    Hi Everyone, we seem to be experiencing an unexpected issue with one of our ECS agents. When kicking off a flow, we get an error message:
    Unable to locate credentials
    . This happens right after the flow is scheduled and submitted (before any of the tasks can even begin to kick off). We don't think it is related to boto because our EC2 instance is able to read from aws buckets (confirmed by ssh'ing on the instance) via an iam policy attached to the EC2 instance. Unfortunately, running with debug mode didn't produce any more verbose results or a stack trace. We did have to reboot this instance recently after it became unresponsive due to an errant task we had running that consumed too much memory and stalled out. Has anyone experienced this before?
    d
    Kevin Kho
    +1
    14 replies
    Copy to Clipboard
  • Shyam

    Shyam

    1 year ago
    Hi Folks, Is there an example of sending emails using Sendgrid using prefect? I can send emails via sendgrid API without issues. However, while using it with prefect I am getting a
    ForbiddenError: HTTP Error 403: Forbidden
    Shyam
    m
    5 replies
    Copy to Clipboard
  • m

    Marie

    1 year ago
    Hi Everyone, Quick question on alerting, is there a way to set up alerts to receive emails or slack messages when agents are unhealthy? or if no run has completed successfully in the last say 24hours? Thank you!
    m
    Kevin Kho
    +1
    12 replies
    Copy to Clipboard
  • k

    Kathryn Klarich

    1 year ago
    I noticed after upgrading to prefect 0.15.5 that the argument
    set_schedule_active
    is now defaulted to
    True
    (use to be
    False
    i believe) which causes a warning if you register your flow without a schedule in the prefect UI. I was wondering if this was intended as I didn't see anything about this change in the release notes.
    k
    Michael Adkins
    +1
    5 replies
    Copy to Clipboard
  • l

    Luke Orland

    1 year ago
    We are trying to figure out how a flow running in Prefect Cloud might fail with
    Failed to find current tenant None in result  {'data': {'tenant': [{'id': 'foo-400d-4288-8020-...', 'slug': '<redacted>'}]}}
    when it attempts to trigger another flow run via
    StartFlowRun
    .
    l
    Kevin Kho
    7 replies
    Copy to Clipboard
  • Leon Kozlowski

    Leon Kozlowski

    1 year ago
    Was there ever any consideration for including a
    --tag
    or
    --image-tag
    override in the
    build
    CLI command?
    Leon Kozlowski
    Kevin Kho
    3 replies
    Copy to Clipboard
  • Constantino Schillebeeckx

    Constantino Schillebeeckx

    1 year ago
    hi there! I'm trying to add the
    AWS_CREDENTIALS
    secret to the Prefect Cloud UI but I"m unclear how exactly to format it, which one of these is it?
    {"ACCESS_KEY": "abcdef", "SECRET_ACCESS_KEY": "ghijklmn"}
    or
    '{"ACCESS_KEY": "abcdef", "SECRET_ACCESS_KEY": "ghijklmn"}'
    Also, which "type" should I choose when entering the secret?
    Constantino Schillebeeckx
    Kevin Kho
    7 replies
    Copy to Clipboard
  • f

    Frederick Thomas

    1 year ago
    Hi Humans, I have a hopefully quick question that I need help with. I am supporting a Prefect installation which I would like to clean up the code base since there is a lot of boilerplate, I am considering using a single python source file and add the necessary flow name, parameters and whatever else from a database query . But I realized that each flow must be registered so using a single python file this way may not work... So my question is will it work, and how would I register the individual flows? Thanks!!
    f
    Kevin Kho
    4 replies
    Copy to Clipboard
  • Ishavpreet Singh

    Ishavpreet Singh

    1 year ago
    Hi just started installing the prefect and I am facing an issue while creating a project from cli and getting ValueError: invalid literal for int() with base 0