Skip to main content
Solved

DOCUMENT_TICKET_TEMP_PATH clean up

  • March 5, 2023
  • 2 replies
  • 391 views

Forum|alt.badge.img+11

Does anyone (I am looking at @Mathias Dahl  😁 here) know whether files in the app server are deleted / cleaned up on a regular basis.

 The app server file path is defined under DOCUMENT_TICKET_TEMP_PATH of “document default values”

 


Reason for questioning this is, I’ve written an event action based on PDF_REPORT_CREATED job to unpack documents connected to a Purchase Order / Line and email it as an attachment to along with the purchase order. I don’t want the system to clog up by storing temp files in the App Server.
Thanks in Advance! Malik

 

Best answer by Amila Samarasinghe

Hi @malik.sally 

Temporary tickets are deleted from DOCUMENT_TICKET_TEMP_PATH once after it is used, so that no ticket backlog will be created. But if in any case there are documents remains in DOCUMENT_TICKET_TEMP_PATH, then you can schedule a database task with method "delete_old_tickets" in the "batch_transfer_handler_api" and provide the parameter SCHEDULED_HOURS [SCHEDULED_HOURS is a parameter to distinguish the tickets to be deleted. So all the tickets older than the scheduled hours will get deleted]

 

Thanks and Regards,

2 replies

Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14
  • Superhero (Partner)
  • 191 replies
  • Answer
  • March 6, 2023

Hi @malik.sally 

Temporary tickets are deleted from DOCUMENT_TICKET_TEMP_PATH once after it is used, so that no ticket backlog will be created. But if in any case there are documents remains in DOCUMENT_TICKET_TEMP_PATH, then you can schedule a database task with method "delete_old_tickets" in the "batch_transfer_handler_api" and provide the parameter SCHEDULED_HOURS [SCHEDULED_HOURS is a parameter to distinguish the tickets to be deleted. So all the tickets older than the scheduled hours will get deleted]

 

Thanks and Regards,


Forum|alt.badge.img+11
  • Author
  • Hero (Partner)
  • 232 replies
  • March 8, 2023

Thanks @Amila Samarasinghe for your quick response. This helps.