Async debug help?

Hey folks,

I’m adding some logic to do async polling (which looks fine, for logic, anyway) to the app.

I’m noticing that when I launch something via async wrapper directly things work as expected and things background

./library/async_wrapper 12345 30 /library/command /bin/sleep 30

But when run from paramiko, things block

ansible -B 30 -a “/bin/sleep 30”

Can someone take a look at this and see what async_wrapper might need to do to daemonize better? I have some daemonization code from cobbler I could try to adopt (if needed), but I suspect “exec_command” in paramiko is trying to be clever.

FYI async polling every 5 seconds with a limit of 30 seconds total will look like this: ansible -B 30 -P 5 -a “/bin/sleep 30”

I’ll commit the polling logic shortly regardless as it’s separate from the issue of why things are blocking.

–Michael

Looks like the kid was printing instead of the parent. Still looking into it :slight_smile:

–Michael