Skip to main content
Solved

DOCUMENT_TICKET_TEMP_PATH clean up


Forum|alt.badge.img+10

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,

View original
Did this topic help you find an answer to your question?

2 replies

Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

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+10
  • Author
  • Hero (Partner)
  • 145 replies
  • March 8, 2023

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings