Skip to content

Commit

Permalink
Pass token to wkw conversion job (#5485)
Browse files Browse the repository at this point in the history
* pass token to wkw conversion job

* typo
  • Loading branch information
fm3 authored May 12, 2021
1 parent f41f4ae commit 50e53e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions app/controllers/JobsController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,12 @@ class JobsController @Inject()(jobDAO: JobDAO,
organizationName)
_ <- bool2Fox(request.identity._organization == organization._id) ~> FORBIDDEN
command = "convert_to_wkw"
commandArgs = Json.obj("organization_name" -> organizationName,
"dataset_name" -> dataSetName,
"scale" -> scale)
commandArgs = Json.obj(
"organization_name" -> organizationName,
"dataset_name" -> dataSetName,
"scale" -> scale,
"webknossos_token" -> TracingStoreRpcClient.webKnossosToken
)

job <- jobService.runJob(command, commandArgs, request.identity) ?~> "job.couldNotRunCubing"
js <- jobService.publicWrites(job)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait BucketProvider extends FoxImplicits with LazyLogging {
if (duration > 500) {
val className = this.getClass.getName.split("\\.").last
logger.warn(
s"oading file in $className took ${if (duration > 3000) "really " else ""}long.\n"
s"loading file in $className took ${if (duration > 3000) "really " else ""}long.\n"
+ s" duration: $duration\n"
+ s" dataSource: ${readInstruction.dataSource.id.name}\n"
+ s" dataLayer: ${readInstruction.dataLayer.name}\n"
Expand Down

0 comments on commit 50e53e9

Please sign in to comment.