• Shivam Bhatia

    Shivam Bhatia

    8 months ago
    Hi, can I run a task within another task?
    Shivam Bhatia
    Anna Geller
    2 replies
    Copy to Clipboard
  • Prudhvi Kalakota

    Prudhvi Kalakota

    8 months ago
    Hi everyone. Unable to see the logs in the prefect cloud for any flow. This started happening today
    Prudhvi Kalakota
    Henrietta Salonen
    +1
    4 replies
    Copy to Clipboard
  • a

    Andy Waugh

    8 months ago
    Hello, could someone please look at this issue and let me know if it is a bug or if I am doing something wrong? https://github.com/PrefectHQ/prefect/issues/5299 🙏
    a
    Anna Geller
    3 replies
    Copy to Clipboard
  • Henrietta Salonen

    Henrietta Salonen

    8 months ago
    @Anna Geller @Prudhvi Kalakota Seems like the runlogs are back again😃
    Henrietta Salonen
    Prudhvi Kalakota
    2 replies
    Copy to Clipboard
  • Vamsi Reddy

    Vamsi Reddy

    8 months ago
    Hi everyone, Me and my team are creating some flows on prefect. Initially I had my own prefect account and later on my teammate added me to his prefect account (company account). Now when i try to register the flows to this newly migrated account i get the authentication error. i did try to add the latest credentials to the auth.toml file. but i still get this error.
    prefect.exceptions.AuthorizationError: [{'path': ['project'], 'message': 'AuthenticationError: Forbidden', 'extensions': {'code': 'UNAUTHENTICATED'}}]
    Vamsi Reddy
    1 replies
    Copy to Clipboard
  • Joshua S

    Joshua S

    8 months ago
    Good Morning, I wanted to share a Service we here at Softrams created for Prefect. Our customers and use cases currently require Authorization to secure the runs and access to Prefect. Please check out our open-sourced service! https://github.com/softrams/prefect-auth-proxy
    Joshua S
    Kevin Kho
    2 replies
    Copy to Clipboard
  • Alvaro Durán Tovar

    Alvaro Durán Tovar

    8 months ago
    is it possible to set max_retries=0 on a task? I'm trying to do so for
    RunNamespacedJob
    no success so far
    Alvaro Durán Tovar
    Kevin Kho
    3 replies
    Copy to Clipboard
  • Miroslav Rác

    Miroslav Rác

    8 months ago
    Hi everyone, I am new here! I am trying Prefect for the first time but I have come into an issue. My registered flow is not showing in the UI. I am running it locally via docker. testflow.py
    import prefect
    from prefect import Flow, task
    
    @task
    def test_task():
        return 'ok'
    
    with Flow('test_flow') as flow:
        test_task()
    
    flow.register(project_name="other")
    my CLI:
    > prefect backend server
    Backend switched to server
    > prefect server create-tenant --name default
    Tenant created with ID: 6bf4ef79-ddcb-4ea3-8ea2-4dcab05a375a
    > prefect agent local start
    [2022-01-10 15:12:15,508] INFO - agent | Starting LocalAgent with labels ['72f026a71863']
    ...
    > python /home/testflow.py
    Flow URL: <http://localhost:8080/default/flow/bf9d5401-9034-4ec0-8e43-9149b0718d23>
     └── ID: 5e6af0a7-d5af-47bf-831b-b0a4fb4d3401
     └── Project: other
     └── Labels: ['72f026a71863']
    when I open the URL directly, I can see the flow in the UI. I can run it via “quick run” and it runs. however, the flow is not listed in my project nor the run is visible under the flow (when accessed via URL, I see no activity and no run history). on the main dashboard, the run activity is showed but seem like it went astray since it is not assigned to the flow. the “flows” tab shows “you have no flows in this project” SETUP: I created
    docker-compose.yaml
    via
    prefect server config
    and changed hasura image to
    hasura/graphql-engine:latest
    because the default hasura image is not working fine with my mac M1 pro. I added another service from which I try to register and run flows
    client:
        image: python:3.8.12-slim
        command: bash -c "apt-get update -y && apt-get install gcc -y && pip install prefect[dev] && prefect backend server && tail -f /dev/null"
        volumes:
          - ./client:/home # here I have my testflow.py
        networks:
          prefect-server: null
        environment:
          - PREFECT__SERVER__HOST=<http://apollo>
    EDIT: added info on my setup
    Miroslav Rác
    Kevin Kho
    43 replies
    Copy to Clipboard
  • Amichai Ben Ami

    Amichai Ben Ami

    8 months ago
    Hi, I am trying to start with Prefect 🙂 we want to build the flows in our CI using Github Actions we run locally python script and build the Dockers successfully when doing the same in Github workflow
    storage = flows_storage(registry_url, image_name, tag)
    storage = Docker(
            dockerfile="Dockerfile",
            image_tag=tag,
            registry_url=registry_url,
            image_name=image_name,
        )
    storage.build(push=False)
    traceback in the Thread attached. any idea? maybe timeout? Anyway to increase timeout? Thanks
    Amichai Ben Ami
    Kevin Kho
    4 replies
    Copy to Clipboard