Skip to content

Commit b86429d

Browse files
committed
Fix db renderer to not rely on yath temp dirs
1 parent 62ee47e commit b86429d

File tree

1 file changed

+2
-1
lines changed
  • lib/App/Yath/Renderer

1 file changed

+2
-1
lines changed

lib/App/Yath/Renderer/DB.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ sub start {
8686

8787
App::Yath::Schema::Util::schema_config_from_settings($self->{+SETTINGS});
8888

89-
my ($r, $w) = Consumer::NonBlock->pair(batch_size => 1000);
89+
my ($dir) = grep { $_ && -d $_ } '/dev/shm', '/tmp', $ENV{SYSTEM_TMPDIR};
90+
my ($r, $w) = Consumer::NonBlock->pair(batch_size => 1000, $dir ? (base_dir => $dir) : ());
9091

9192
$self->{+WRITER} = $w;
9293

0 commit comments

Comments
 (0)