Skip to content

Commit

Permalink
When jobsEnabled=False, send empty jobsSupportedByAvailableWorkers li…
Browse files Browse the repository at this point in the history
…st (#8324)
  • Loading branch information
fm3 authored Jan 16, 2025
1 parent 761f1b1 commit a04bca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/dataset/DataStore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class DataStoreService @Inject()(dataStoreDAO: DataStoreDAO, jobService: JobServ
"name" -> dataStore.name,
"url" -> dataStore.publicUrl,
"allowsUpload" -> dataStore.allowsUpload,
"jobsSupportedByAvailableWorkers" -> Json.toJson(jobsSupportedByAvailableWorkers),
"jobsSupportedByAvailableWorkers" -> Json.toJson(
if (conf.Features.jobsEnabled) jobsSupportedByAvailableWorkers else List.empty),
"jobsEnabled" -> jobsEnabled
)

Expand Down

0 comments on commit a04bca6

Please sign in to comment.