cq-cli icon indicating copy to clipboard operation
cq-cli copied to clipboard

CODECS with Temporary files using tempfile.mkdtemp() enabling multiple processing.

Open kny5 opened this issue 8 months ago • 3 comments

For the issue of multiple processes overwriting temporary codec files at /tmp/. Placing temporary codec files like: "temp_dxf.dxf" inside a directory created using tempfile.mkdtemp(). Ensuring, no io file bottlenecks, racing conditions or unwanted overwriting happens while using tools like, cadorchestrator server and nimble, or any other bulk multiple processing.

A class temp_dir was created with the methods:

init for initialisation and creation of the directory, and dlt for safely removing the path and directory if needed.

kny5 avatar Mar 15 '25 01:03 kny5

Thanks @kny5 ! The FreeCAD failure is not your doing. It's failing in another current PR too. It does look like there is a lint issue though.

jmwright avatar Mar 15 '25 02:03 jmwright

@kny5 If you merge master into your branch it should fix the FreeCAD test.

jmwright avatar Mar 19 '25 14:03 jmwright

Closes #39

jmwright avatar Apr 07 '25 11:04 jmwright