Skip to content

Concurrency issue when generating identical graphs #53

@ewft

Description

@ewft

Hi,

I found out that if a document contains multiple identical plots ( exactly same source code to generate the plot), pandoc-plot fail ( in a random way) over a race condition on the created files.

pandoc-plot: plots/pandocplot12097460476205103681.src.html: withFile: resource busy (file is locked).

I work around this by adding some random comment different in each plot code source.

I run across that issue when dealing with automated generated document (Test report) with identical plots ( basic pie chart showing the test results (PASS/FAIL).

I think this could be solve by adding a random part in the calculation of the plot ID. And probably conditioned by an option to not impact performance when not needed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions