Skip to content

Commit

Permalink
Limit number of execution attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed May 9, 2024
1 parent d635a20 commit 2ae0e41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mupifDB/workflowscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ def checkExecutionResources(eid):


if __name__ == '__main__':
# for testing
# restApiControl.setExecutionStatusPending('a6e623e7-12a5-4da3-8d40-fc1e7ec00811')

if (Path(schedulerStatFile).is_file()):
with open(schedulerStatFile,'r') as f:
Expand Down Expand Up @@ -641,7 +639,7 @@ def checkExecutionResources(eid):
weid = wed['_id']

# check number of attempts for execution
if int(wed['Attempts']) > 60*10 and False:
if int(wed['Attempts']) > 10:
try:
restApiControl.setExecutionStatusCreated(weid)
if api_type != 'granta':
Expand Down

0 comments on commit 2ae0e41

Please sign in to comment.