Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Aug 23, 2023
1 parent 658b83d commit 8a39f95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/portal/apps/workspace/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get(self, request, *args, **kwargs):

@method_decorator(login_required, name='dispatch')
class JobsView(BaseApiView):

@staticmethod
def check_job_for_timeout(job):
if hasattr(job, 'notes') and job.status == 'FAILED':
Expand All @@ -148,9 +148,9 @@ def check_job_for_timeout(job):
if notes.get('isInteractive', False) and job.remoteResultInfo == '0:0':
job.status = 'FINISHED'
job.remoteOutcome = 'FINISHED'

return job

def get(self, request, operation=None):

allowed_actions = ['listing', 'search', 'select']
Expand All @@ -164,7 +164,7 @@ def get(self, request, operation=None):
data = op(tapis, request)

if (isinstance(data, list)):
for index, job in enumerate(data):
for index, job in enumerate(data):
data[index] = self.check_job_for_timeout(job)
else:
data = self.check_job_for_timeout(data)
Expand Down

0 comments on commit 8a39f95

Please sign in to comment.