Skip to content

Commit

Permalink
[modules:greta] fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaure committed Jul 1, 2024
1 parent 0988318 commit c5198d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions oar/modules/greta.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@
import re
import socket
import sys
import traceback
from multiprocessing import Pool, TimeoutError
from typing import List, Union

import traceback

import zmq

import oar.lib.tools as tools
Expand Down Expand Up @@ -538,11 +537,11 @@ def wait_db():
"nodes_list_to_remind": nodes_list_to_remind,
}
pickle.dump(greta_status_dump, dump_file, pickle.HIGHEST_PROTOCOL)
logger.debug(f"Max cycles reached: suicide. bye bye.")
logger.debug("Max cycles reached: suicide. bye bye.")
return 42

if not loop:
logger.debug(f"Exiting main loop normally.")
logger.debug("Exiting main loop normally.")
break
return 0

Expand Down Expand Up @@ -675,12 +674,13 @@ def main(): # pragma: no cover
return greta.exit_code

try:
status=greta.run()
status = greta.run()
except Exception as err:
logger.error(f"Unexpected {err=}, {type(err)=}; {traceback.format_exc()}")
raise

return status


if __name__ == "__main__": # pragma: no cover
sys.exit(main())

0 comments on commit c5198d7

Please sign in to comment.