Scott Zelenka03/29/2020, 5:18 PM
generates. I can get the dependent application(s) to run inside a Docker image with supervisord, but that would require the entrypoint of Docker to somehow trigger supervisord before it attempts to execute the Flow. I couldn't find an API in Prefect to allow for this type of functionality? Another option is to provide the dependent application(s) as a native cloud service, and communicate over the network to access the same way I do it on my local dev machine.. but that'd be overkill for this one Flow. Curious if anyone has been successful in wrapping another (non-Python) application inside a serialized Flow to deploy on Prefect Cloud.
Chris White03/29/2020, 5:41 PM
hook on the environment class for situations like this; it is a Python hook but you might be able to get away with calling a subprocess here - We could definitely explore adding some pre-execute non-python hooks to the CLI endpoint that agents call to support this type of use case
Scott Zelenka03/30/2020, 12:45 PM