Denys Y
08/21/2025, 10:04 AM10:35:30.105 | ERROR | prefect.server.utilities.messaging.memory - Failed in consume_loop
2025-08-20 12:35:30.102
(Background on this error at: <https://sqlalche.me/e/20/gkpj>)
2025-08-20 12:35:30.102
[parameters: ('', 'c38b2d48-354e-5eca-982f-66b5e7a7f7de', 'c38b2d48-354e-5eca-982f-66b5e7a7f7de', DateTime(2025, 8, 20, 10, 35, 30, 19238, tzinfo=Timezone('UTC')), '{"occurred": "2025-08-20T10:35:30.017538Z", "event": "prefect.kubernetes.pod.pending", "resource": {"prefect.resource.id": "prefect.kubernetes.pod.3f ... (1084 characters truncated) ... oad": {}, "id": "c38b2d48-354e-5eca-982f-66b5e7a7f7de", "follows": "c38b2d48-354e-5eca-982f-66b5e7a7f7de", "received": "2025-08-20T10:35:30.019238Z"}', '9ece2561-85b6-4889-b6dc-aebb96d23a6f', DateTime(2025, 8, 20, 10, 35, 30, 74136, tzinfo=Timezone('UTC')), DateTime(2025, 8, 20, 10, 35, 30, 74155, tzinfo=Timezone('UTC')))]
2025-08-20 12:35:30.102
[SQL: INSERT INTO automation_event_follower (scope, leader_event_id, follower_event_id, received, follower, id, created, updated) VALUES ($1::VARCHAR, $2::UUID, $3::UUID, $4::TIMESTAMP WITH TIME ZONE, $5, $6::UUID, $7::TIMESTAMP WITH TIME ZONE, $8::TIMESTAMP WITH TIME ZONE)]
2025-08-20 12:35:30.102
DETAIL: Key (scope, follower_event_id)=(, c38b2d48-354e-5eca-982f-66b5e7a7f7de) already exists.
2025-08-20 12:35:30.102
sqlalchemy.exc.IntegrityError: (sqlalchemy.dialects.postgresql.asyncpg.IntegrityError) <class 'asyncpg.exceptions.UniqueViolationError'>: duplicate key value violates unique constraint "uq_follower_for_scope"
2025-08-20 12:35:30.102
raise translated_error from error