Skip to content

Commit a04bca6

Browse files
authored
When jobsEnabled=False, send empty jobsSupportedByAvailableWorkers list (#8324)
1 parent 761f1b1 commit a04bca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/dataset/DataStore.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class DataStoreService @Inject()(dataStoreDAO: DataStoreDAO, jobService: JobServ
7272
"name" -> dataStore.name,
7373
"url" -> dataStore.publicUrl,
7474
"allowsUpload" -> dataStore.allowsUpload,
75-
"jobsSupportedByAvailableWorkers" -> Json.toJson(jobsSupportedByAvailableWorkers),
75+
"jobsSupportedByAvailableWorkers" -> Json.toJson(
76+
if (conf.Features.jobsEnabled) jobsSupportedByAvailableWorkers else List.empty),
7677
"jobsEnabled" -> jobsEnabled
7778
)
7879

0 commit comments

Comments
 (0)