question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ExpiredFilesCleanupService doesn't remove any files?

See original GitHub issue

Hi, I’ve coped ExpiredFilesCleanupService into my project from the .NET 6 example and I’ve set expiration to 10 minutes in the “DefaultTusConfiguation” using the pattern from the same example:

Expiration = new AbsoluteExpiration(TimeSpan.FromMinutes(10)),

But although the job runs correctly, no files actually get deleted. How do I find out why it thinks there are no files to be deleted?

The log files just show this line: .ExpiredFilesCleanupService|Removed 0 expired files. Scheduled to run again in 600000 ms

The folder it saves to has several months’ worth of files in it:

image

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
nmg196commented, Aug 24, 2022

Ahh it seems I’ve misunderstood then - I was assuming that this folder was for temp files. I store the file as an Azure Blob after upload so what do I need to do to ensure the folder doesn’t get infinitely big? Delete them with my own process after saving to Azure?

0reactions
smatssoncommented, Aug 24, 2022

That’s understandable. 😃 See this wiki page on how to delete files: https://github.com/tusdotnet/tusdotnet/wiki/Deleting-processed-files-when-upload-is-complete

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disk cleanup in Windows 10 is not removing selected files
Disk Cleanup deletes temporary files and system files, empty the recycle bin and remove a variety of other items that you might no...
Read more >
Disk Cleanup doesn't clear Windows Update Cleanup
Hey folks, try as I might, I cannot get Disk Cleanup (via clean up system files) to clean the files in Windows Update...
Read more >
Disk Cleanup not working properly or does not remove files in ...
Disk Cleanup is an inbuilt utility tool in Windows 11/10 that enables you to erase useless and junk files from your PC. It...
Read more >
Force Delete a File That Cannot Be Deleted Windows 10
Force Delete a File That Cannot Be Deleted Windows 10 ▻▻▻SUBSCRIBE for more: https://www.youtube.com/user/Britec09?sub_confirmation=1 How ...
Read more >
How To Delete File Or Folder That Won't Delete [SOLVED]
Delete file that cannot be deleted. UPDATED Download Link - http://www.majorgeeks.com/ files /details/unlocker.html Original Link In Video ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found