Skip to content

Commit 1f6d4a9

Browse files
author
hpratt
committed
start HTTP server on workflow run
1 parent 91fff16 commit 1f6d4a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/krews/core/WorkflowRunner.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ class WorkflowRunner(
5252
runRepo = RunRepo(runDb)
5353
val reportThreadFactory = BasicThreadFactory.Builder().namingPattern("report-gen-%d").build()
5454
reportPool = Executors.newSingleThreadScheduledExecutor(reportThreadFactory)
55-
56-
if (httpPort != null) runHTTPServer(httpPort)
5755
}
5856

5957
fun run() {
@@ -73,6 +71,7 @@ class WorkflowRunner(
7371
}
7472
}, reportGenerationDelay, reportGenerationDelay, TimeUnit.SECONDS)
7573

74+
if (httpPort != null) runHTTPServer(httpPort)
7675
val workflowRunSuccessful = runWorkflow()
7776

7877
runRepo.completeWorkflowRun(workflowRun, workflowRunSuccessful)

0 commit comments

Comments
 (0)