Skip to content

Commit

Permalink
scheduler: write contact file before configure
Browse files Browse the repository at this point in the history
* Write the contact file earlier to minimise the window of opportunity
  for two schedulers to start up for the same workflow.
  • Loading branch information
oliver-sanders committed Jun 28, 2023
1 parent 4d66301 commit 637b1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,8 @@ async def start(self):
self.server.thread.start()
barrier.wait()

await self.configure()
self._configure_contact()
await self.configure()
except (KeyboardInterrupt, asyncio.CancelledError, Exception) as exc:
await self.handle_exception(exc)

Expand Down

0 comments on commit 637b1b4

Please sign in to comment.