Skip to content

Commit

Permalink
Fix issue with orchestration
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed May 20, 2024
1 parent 32fb94c commit 47e4656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dead_hosts/launcher/orchestration.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ def __init__(
elif not end and not save:
logging.info("Checking authorization to run.")

if self.authorization_handler.is_platform_authorized():
if EnvironmentVariableHelper("PLATFORM_WORKER").get_value():
self.run_platform_worker()
elif self.authorization_handler.is_platform_authorized():
self.run_platform_sync()

if EnvironmentVariableHelper("PLATFORM_WORKER").get_value():
self.run_platform_worker()
elif self.authorization_handler.is_test_authorized():
PyFunceble.facility.ConfigLoader.start()
self.fetch_file_to_test()
Expand Down Expand Up @@ -457,6 +456,7 @@ def run_platform_sync(self):
# The commit is one of the last one.
ci_engine.bypass()
except (StopExecution, ContinuousIntegrationException):
logging.info("No need to synchronize.")
sys.exit(0)

execute_all_updater(self.info_manager)
Expand Down

0 comments on commit 47e4656

Please sign in to comment.