You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmain():
""" Wrapper around main code to catch errors (and exit nicely) i.e. deal with the lock file :return: """# lets lock (or not run if locked)not_running=general.lock(stop=True)
# load paramsparams=misc.load_params()
# if running then we exitifnotnot_running:
misc.log_msg(params, 'Request already running - exiting')
# try to run main codetry:
__main__(params)
# unlock the codegeneral.unlock()
exceptExceptionase:
# unlock the codegeneral.unlock()
# raise exceptionraisee
Need to exit inside the if statement where we print "Request already running" otherwise code will just run as normal after printing this - thus getting two apero_requests running at the same time.
defmain():
""" Wrapper around main code to catch errors (and exit nicely) i.e. deal with the lock file :return: """# lets lock (or not run if locked)not_running=general.lock(stop=True)
# load paramsparams=misc.load_params()
# if running then we exitifnotnot_running:
misc.log_msg(params, 'Request already running - exiting')
return# try to run main codetry:
__main__(params)
# unlock the codegeneral.unlock()
exceptExceptionase:
# unlock the codegeneral.unlock()
# raise exceptionraisee
People got links that did not work. Then got second email with a link that worked.
In logs
apero_request
started looking at 25 jobs, then jumped to 27 jobs, then back to 25 jobs?Seems that the 2 people who got bad links were the 2 jobs that were "added"?
Problem with two
apero_request
codes running at same time?The text was updated successfully, but these errors were encountered: