Due to updates in the scheduler the scheduler was failing on the first call to the scheduled poll.
This wasn't caught in integration testing as the server would restart the agent pod and this would initiate a sweep that would allow the test to pass.
This update now maps to the implementation in the tokio-cron-scheduler examples and uses a loop to prevent the agent from falling through while it waits for the async handles to complete.
Due to updates in the scheduler the scheduler was failing on the first call to the scheduled poll. This wasn't caught in integration testing as the server would restart the agent pod and this would initiate a sweep that would allow the test to pass. This update now maps to the implementation in the tokio-cron-scheduler examples and uses a loop to prevent the agent from falling through while it waits for the async handles to complete.