Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Aug 30, 2023
1 parent d9f665e commit 9a00668
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions server/portal/apps/workspace/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,28 +140,6 @@ def get(self, request, *args, **kwargs):
@method_decorator(login_required, name='dispatch')
class JobsView(BaseApiView):

# @staticmethod
# def get_tapis_timeout_error_messages(job_id):
# return [
# 'JOBS_EARLY_TERMINATION Job terminated by Tapis because: TIME_EXPIRED',
# f'JOBS_USER_APP_FAILURE The user application ({job_id}) ended with remote status "TIMEOUT" and returned exit code: 0:0.'
# ]

# @staticmethod
# def check_job_for_timeout(job, timeout_messages):
# if (hasattr(job, 'notes')):
# notes = json.loads(job.notes)

# is_failed = job.status == 'FAILED'
# is_interactive = notes.get('isInteractive', False)
# has_timeout_message = job.lastMessage in timeout_messages

# if is_failed and is_interactive and has_timeout_message:
# job.status = 'FINISHED'
# job.remoteOutcome = 'FINISHED'

# return job

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

allowed_actions = ['listing', 'search', 'select']
Expand Down

0 comments on commit 9a00668

Please sign in to comment.