Peter Nagy
06/09/2023, 5:46 PM__exit__
method of the context manager is called shortly after the ECSTask starts running - so the task does not actually run. However, __enter__
works fine, and the ECSTask execution only starts when the EC2 is up. Could anyone explain me why this is happening and how I could fix it?
with ECSScaler(print_func=<http://logger.info|logger.info>) as scaler:
ECSTask(...).run()
Zanie
ECSTask().run()
is an async methodZanie
Zanie
.run()
?Peter Nagy
06/12/2023, 7:46 AMprefect_aws.ecs.ECSTaskResult
object with status_code=0
Peter Nagy
06/12/2023, 10:05 AMtask_runner
), which did not throw any errors, but also did not work🤦 Thanks for the quick reply though, I appreciate it! 🙂