Skip to content

Commit

Permalink
Do not update REST endpoints in static mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmullen committed Jul 3, 2023
1 parent 44880d1 commit 1cbaad9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slicer_cli_web/girder_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import datetime
import json
import os

from girder import events, logger
from girder.constants import AccessType
Expand Down Expand Up @@ -63,8 +64,9 @@ def load(self, info):

Job().exposeFields(level=AccessType.READ, fields={'slicerCLIBindings'})

events.bind('jobs.job.update.after', resource.resourceName,
resource.addRestEndpoints)
if os.environ.get('GIRDER_STATIC_REST_ONLY'):
events.bind('jobs.job.update.after', resource.resourceName,
resource.addRestEndpoints)
events.bind('data.process', 'slicer_cli_web', _onUpload)

count = 0
Expand Down

0 comments on commit 1cbaad9

Please sign in to comment.