Open kavvkon opened 4 days ago
hi @kavvkon - thanks for the issue. Do you have any rules that would prevent websocket traffic? also do you see anything about the EventsWorker
still processing items?
I think this is likely a duplicate of this issue
Yes that should be it. The prefect server is hosted in another PC in intranet, (not through https). But I am in a corporate network and there are some restrictions. Any idea how to bypass and ignore SSL related errors ?
This code works btw
import asyncio
from prefect.events.clients import PrefectEventsClient
async def main():
async with PrefectEventsClient() as client:
print(f"Connected to: {client._events_socket_url}")
pong = await client._websocket.ping()
pong_time = await pong
print(f"Response received in: {pong_time}")
if __name__ == '__main__':
asyncio.run(main())
Connected to: ws://192.168.1.10:4200/api/events/in
Response received in: 0.0025052999990293756
Bug summary
When I visualize a flow run in a local server, the flow runs successfully but the visual info on server does not work very well. I do not see any task runs, and the flow runs do not appear in the UI as blocks. Version 2 was working fine !
Successful run: C:\Windows>C:/Users/paul/Anaconda3/envs/prefect_env/python.exe my_gh_workflow.py
15:05:55.665 | INFO | prefect.engine - Created flow run 'righteous-dragon' for flow 'log-repo-info' 15:05:55.665 | INFO | prefect.engine - View at http://192.168.1.10:4200/runs/flow-run/b99db794-7b04-4b70-af3d-7eeb6bd51948 15:05:57.441 | INFO | Task run 'get_repo_info-2bd' - Finished in state Completed() 15:05:57.441 | INFO | Flow run 'righteous-dragon' - Stars π : 17477 15:05:59.144 | INFO | Task run 'get_contributors-838' - Finished in state Completed() 15:05:59.146 | INFO | Flow run 'righteous-dragon' - Number of contributors π·: 30 15:05:59.188 | INFO | Flow run 'righteous-dragon' - Finished in state Completed()
Version info
Additional context
Calling this file my_gh_workflow.py based on this example from https://docs.prefect.io/3.0/get-started/quickstart