Project

General

Profile

Actions

Feature #1611

closed

Remove workflow history created by synchronization

Added by Ondřej Kopr about 5 years ago. Updated over 4 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 #1

Updated by Vít Švanda about 5 years ago

  • Target version set to Quartz (9.6.0)
Actions #2

Updated by Vít Švanda almost 5 years ago

  • Target version changed from Quartz (9.6.0) to Rhyolite (9.7.0)
Actions #3

Updated by Vít Švanda almost 5 years ago

  • Subject changed from Remove workflow instance created by synchronization to Remove workflow history created by synchronization
Actions #4

Updated by Vít Švanda almost 5 years ago

  • Assignee changed from Ondřej Kopr to Vít Švanda
  • Estimated time set to 8.00 h
Actions #5

Updated by Vít Švanda almost 5 years ago

  • Status changed from New to In Progress
Actions #6

Updated by Vít Švanda almost 5 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 0 to 90

Implemented. History of workflow processes created and ended during sync are deleted.

https://github.com/bcvsolutions/CzechIdMng/commit/9430a99fad28f5ef211a45af663bb2e658f132e7

Actions #7

Updated by Radek Tomiška over 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Radek Tomiška to Vít Švanda
  • % Done changed from 90 to 100

I did test and review, its awesome, thx!

Actions #8

Updated by Vít Švanda over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF