Skip to content

Commit a2e28b4

Browse files
committed
adjust time to restart the service
1 parent 3b08959 commit a2e28b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cms/service/ResourceService.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ def _restart_services(self):
270270
logger.info("Auto-mapping %s Shard %d to Contest ID %d (ignoring admin-selected ID %d)",
271271
service.name, service.shard, derived_contest_id, self.contest_id)
272272
args += ["-c", str(derived_contest_id)]
273+
time.sleep(1)
273274
else:
274275
# *** ถ้า Shard ID เกิน (เช่น Shard 4, 5, ...) ให้ข้ามไปเลย (continue) ***
275276
#logger.warning("Skipping %s Shard %d: No auto-map contest ID available (Max: %d)",

0 commit comments

Comments
 (0)