Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/sentry/workflow_engine/processors/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,19 @@ def update_workflow_action_group_statuses(
id__in=statuses_to_update, date_updated__lt=now
).update(date_updated=now)

WorkflowActionGroupStatus.objects.bulk_create(
all_statuses = WorkflowActionGroupStatus.objects.bulk_create(
missing_statuses,
batch_size=1000,
ignore_conflicts=True,
)
missing_status_pairs = [
(status.workflow_id, status.action_id) for status in all_statuses if status.id is None
]
if missing_status_pairs:
logger.warning(
"Failed to create WorkflowActionGroupStatus objects",
extra={"missing_status_pairs": missing_status_pairs},
)


def get_unique_active_actions(
Expand Down
Loading