• hieu le

    hieu le

    2 months ago
    Hi, i have problem run schedule every minute. when run schedule, states flow change Scheduled to Late , How to fix it ?
    hieu le
    Anna Geller
    4 replies
    Copy to Clipboard
  • j

    Josh Cowles

    2 months ago
    Hi there everyone! I am wondering what people have been using for passing data between prefect 2 tasks if the data is a tf.dataset or one of it's subtypes, does anyone have any experience with trying to pass those through tasks? Or would I be better off simply using the tensorflow provided methods for saving and loading to a file, and just use prefect results for file paths etc?
    j
    Kevin Kho
    3 replies
    Copy to Clipboard
  • Ha Pham

    Ha Pham

    2 months ago
    Hi, I'm looking into Prefect 2.0 and have questions about managing secrets / credentials of external services. In 1.0 local development, I can set them in the
    config.toml
    file, or put them in an .env file. In 2.0 looks like this is replaced by the
    Block
    concept. So: • Looking at Block's doc, I think currently the only way for me to register a certain secret is to write it as a Block, turn it into a script, then run it. Is this correct? • It is said that the Block's content will be saved in the db (default to SQLite). does this mean if I want to see the content outside of prefect's development workflow, I have to query the db directly? • How do I modify & delete saved secrets? • What's the best way to manage environment variables?
    Ha Pham
    1 replies
    Copy to Clipboard
  • r

    Rohit

    2 months ago
    Hello! Let's say I have a python script deploy.py that takes the best model from MLflow model registry and deploys it as a flask application. Is there a simple way I can add this script as a task in a prefect flow? Something like this:
    @task
    def deploy_best_model():
          python deploy.py
    r
    Anna Geller
    5 replies
    Copy to Clipboard
  • Surawut Jirasaktavee

    Surawut Jirasaktavee

    2 months ago
    Hi, I need help. I got the below error since I ran the command
    prefect storage ls
    or
    prefect storage create
    . How can I solve this?
    Surawut Jirasaktavee
    Anna Geller
    16 replies
    Copy to Clipboard
  • Owais Farooqui

    Owais Farooqui

    2 months ago
    i am getting this
    sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table flow already exists
    when I try to run
    prefect storage ls
    OR
    prefect storage create
    i am using prefect==2.0b6
    Owais Farooqui
    1 replies
    Copy to Clipboard
  • Kun Yin

    Kun Yin

    2 months ago
    Hi! When I run the example code after successfully logged in my prefect cloud (prefect version == 2.0b9), I got the error : prefect.exceptions.PrefectHTTPStatusError: Client error '422 Unprocessable Entity' for url 'https://api-beta.prefect.io/api/accounts/f68f7059-5eec-4e71-acc8-d7f351373e43/workspaces/ada6556d-d542-4378-9b90-b5647a4dd404/flow_runs/'. How can I solve this?
    Kun Yin
    Anna Geller
    +1
    3 replies
    Copy to Clipboard
  • Kun Yin

    Kun Yin

    2 months ago
    Version:
    prefect==2.0b12
    Problem: when I run the code
    a, b= task.submit(c, d)
    the error occurs:cannot unpack non-iterable PrefectFuture object I can use
    task(nout=2)
    in Prefect 1.0+ when my task has multiple return values. What shall I do in Prefect 2.0+ in the same situation? Maybe
    a, b= task.submit(c, d).result()
    can work but I think it is not a good way.
    Kun Yin
    1 replies
    Copy to Clipboard
  • Sana Shaikh

    Sana Shaikh

    2 months ago
    Hello everyone. Its been an amazing experience with prefect. Right now I am trying Orchestration prefect with DBT. @Anna Geller You have done awesome work🙌. I am following your medium article and founding some blockage while registration of the flow on prefect cloud! Can you please help me I just get stuck on the below screens https://medium.com/the-prefect-blog/orchestrating-elt-with-prefect-and-dbt-a-flow-of-flows-part-1-aac77126473#26cb
    Sana Shaikh
    o
    +1
    5 replies
    Copy to Clipboard
  • Sana Shaikh

    Sana Shaikh

    2 months ago
    Anyone else can help