Project

General

Profile

Actions

Feature #1611

closed

Remove workflow history created by synchronization

Added by Ondřej Kopr about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Vít Švanda
Category:
Workflow
Target version:
Start date:
04/17/2019
Due date:
% Done:

100%

Estimated time:
8.00 h
Owner:

Description

Please implement some feature that allow removing workflow instances after synchronization. Or update behavior of synchronization with execute workflow that workflow will not be archived, just executed.

Use case and story behind this:
  • project has daily reconciliation with some end system,
  • for every situation exists project specific workflow,
  • daily is created about 16.000 operations by this reconciliation,
  • activity tables has now about 1.300.000,
  • user request for roles now sometimes ended with exception with timeout,
  • in logs or etc doesn't exists any error log.

We founded this by checking database and lock on tables. Examples:

SELECT relation::regclass, * FROM pg_locks;

SELECT datname
, usename
, wait_event_type
, wait_event
, pg_blocking_pids(pid) AS blocked_by
, query
FROM pg_stat_activity
WHERE wait_event IS NOT NULL;

Actions

Also available in: Atom PDF