When I create an automation (either via Python API...
# ask-community
n
When I create an automation (either via Python API or UI) it doesn't show up afterwards in the Automations tab. I'm running Prefect server 3.0.4. Does anyone have a clue why this is happening? I do see the automations when I run
prefect automations ls
b
Hi Nils, thanks for sharing. I haven't been able to recreate this with 3.0.4. I'm able to see the automation I created in the UI. 🤔
Copy code
Version:             3.0.4
API version:         0.8.4
Python version:      3.11.4
Git commit:          c068d7e2
Built:               Tue, Oct 1, 2024 11:54 AM
OS/Arch:             darwin/arm64
Profile:             local
Server type:         server
Pydantic version:    2.9.2
Screenshot 2024-10-10 at 11.45.05 AM.png
Just to confirm, is the
PREFECT_API_URL
set to communicate with your server? If you're hosting it locally, it should be
PREFECT_API_URL='<http://127.0.0.1:4200/api>'
Running
prefect profile inspect
should help you confirm that
n
Hi Bianca, thanks for your reply! The
PREFECT_API_URL
is set correctly. I'm also able to deploy flows to the (self-hosted) server so I don't think that's the problem. When I go to the Automations and check the network traffic I see that the
api/automations/filter
endpoint retrieves the created automations. They just don't show up in UI 😐
b
hmmm..is there a way you could screen cap what you're seeing?
n
Sure! Here is what the Automations tab looks like, with the network request on the right.
Also, creating a Block or Variable works fine. It's just the Automations that don't seem to work/show up
When loading the Automations page, the console shows this error
All automation disappear in the UI when I add an automation with the following actions:
Copy code
actions=[
            prefect.events.actions.CallWebhook(
                block_document_id="XXXXX"
            )
        ]
How would I need to add a
CallWebhook
action when creating an automation via the Python SDK?