Project

General

Profile

Actions

roos-fs tasks #401

open

Issue with the report dublications

Added by Vadim Pariev 8 months ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
09/09/2025
Due date:
% Done:

0%

Estimated time:

Description

General
Strange behavior is seen with some reports in the online Environment.
Some of the services upon completion receive not 2 completion reports but 4 or even 6. The Only trigger for this is the event of completetion of the report that trigger the PDF report generation.

Example of this behaviour:
Service ID: 5908
Service ID: 5924
Service ID: 5494

Expected result

  • find the rootcause of the issue and state here in the comments

Files

clipboard-202509292239-narxm.png (86.4 KB) clipboard-202509292239-narxm.png Vadim Pariev, 09/29/2025 09:00 PM
Actions #1

Updated by Vadim Pariev 8 months ago

  • Status changed from Backlog to Open
Actions #2

Updated by Vadim Pariev 8 months ago

  • Status changed from Open to Backlog
Actions #3

Updated by Vadim Pariev 8 months ago

  • Description updated (diff)
  • Assignee changed from Anton Obolientsev to Ivan Danyliv
Actions #4

Updated by Vadim Pariev 8 months ago

  • Status changed from Backlog to Open
Actions #5

Updated by Ivan Danyliv 8 months ago

  • Status changed from Open to In progress
Actions #6

Updated by Ivan Danyliv 7 months ago · Edited

The root cause is that the job can be enqueued multiple times in certain scenarios:

  1. The transaction is not yet committed, and complete! is called multiple times (for example, due to a frontend bug or double-click).
  2. The object is saved multiple times within a single transaction, causing the after_commit or after_save callbacks to trigger multiple job enqueues (rare cases).
Actions #7

Updated by Ivan Danyliv 7 months ago

  • Status changed from In progress to In review
Actions #8

Updated by Anton Obolientsev 7 months ago

  • Status changed from In review to Deployed (QA)
Actions #9

Updated by Olena Tretjakova 7 months ago

Environment:

OS: Windows 11 Version 24H2 for x64-based systems(KB5065426) (26100.6584)

Browser: Chrome 140.0.7339.186 (Official Build) (64-bit)

Platform: Desktop

Executor: Tretjacova Olena

Preconditions:

  1. The 'Services' page is opened.
  2. Click on the button '+Create New Service'
  3. 'New Service' page is opened.
  4. Select 'OIL CHANGE TEMPLATE' in the Select Template section.
  5. Select 'OLENA098765432112' in the Assignment Vehicle section.
  6. Click 'Create Service'.
  7. The service was created.
  8. Open the 'Services' page.
  9. Click the view icon next 'OIL CHANGE TEMPLATE' service in the table.
  10. The Service Detail page is opened.
  11. Pass the steps to complete the service.

Steps:

  1. Open the Services page.
  2. Click the 'Export Completition Reports'
  3. Select Start Date and End Date : 09/29/2025.
  4. Select Customer : 'Tretyjacova-company'.
  5. Select Vehicle : OLENA098765432112.
  6. Select PDF Report in Export Type section.
  7. Click 'Download Reports' button.

Expected Result:

One PDF report in EN is downloaded.
One PDF report in DE is downloaded.

Actual Result:

Two PDF report in DE is downloaded.
Two PDF report in EN is downloaded.

Attachment:

https://screenrec.com/share/YnINv3RrlH

Actions #10

Updated by Olena Tretjakova 7 months ago

  • Status changed from Deployed (QA) to Ready for Deployment (prod)
Actions #11

Updated by Olena Tretjakova 7 months ago

  • Status changed from Ready for Deployment (prod) to QA Failed
Actions #12

Updated by Vadim Pariev 7 months ago · Edited

Olena hi,

I belive you have a false result here, in the video you have requested the reports from one date and this vechicle has already 2 services in the completed state hence the reports amount are correct.


And you have the same service id in the reports, hence the behavior is correct. Please recheck. Thank you!

Actions #13

Updated by Olena Tretjakova 7 months ago

  • Status changed from QA Failed to Deployed (QA)
Actions #14

Updated by Olena Tretjakova 7 months ago

Rechecking the issues with another ID service (5924) showed that only one EN and one DE report were downloaded, and I got a negative result because the service in the previous test was conducted twice.

Actions #15

Updated by Olena Tretjakova 7 months ago

  • Status changed from Deployed (QA) to Ready for Deployment (prod)
Actions #16

Updated by Vadim Pariev 7 months ago

  • Status changed from Ready for Deployment (prod) to Closed
Actions #17

Updated by Ivan Danyliv about 1 month ago

  • Assignee changed from Ivan Danyliv to Vadim Pariev
Actions #18

Updated by Albert Katasonov 5 days ago

  • Project changed from 8 to Roos-fs-ZIP
Actions

Also available in: Atom PDF