Skip to content

Commit 5dbcde4

Browse files
committed
MET-6497 Add temp directory for http if environment variable is not provided
1 parent 61545ee commit 5dbcde4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ jobs:
77
ci:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Set METIS_PROCESSING_HTTP_JOBS_DIR env var
11-
run: |
12-
echo "METIS_PROCESSING_HTTP_JOBS_DIR=$RUNNER_TEMP/http-jobs" >> $GITHUB_ENV
13-
mkdir -p "$RUNNER_TEMP/http-jobs"
14-
1510
- name: Install media software
1611
uses: europeana/metis-actions/actions/media-software-install-steps@main
1712
- name: Build code and Sonar Analyze

http/src/main/java/eu/europeana/processing/http/reader/HttpSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class HttpSource implements Source<ExecutionRecordResult, HttpSourceSplit
2828

2929
private static final String METIS_PROCESSING_HTTP_JOBS_DIR_ENV_NAME = "METIS_PROCESSING_HTTP_JOBS_DIR";
3030
private static final String HTTP_JOBS_DIR =
31-
Optional.ofNullable(System.getenv(METIS_PROCESSING_HTTP_JOBS_DIR_ENV_NAME)).orElse("/http-jobs");
31+
Optional.ofNullable(System.getenv(METIS_PROCESSING_HTTP_JOBS_DIR_ENV_NAME)).orElse(System.getProperty("java.io.tmpdir"));
3232

3333
private final ParameterTool parameterTool;
3434
private final String jobDirectoryPath;

0 commit comments

Comments
 (0)