alfred-workflow-py3 icon indicating copy to clipboard operation
alfred-workflow-py3 copied to clipboard

Background Running (tracking)

Open jeeftor opened this issue 3 years ago • 3 comments

Have ya'll tried to get the background functionality working? I'm struggling through it - when I make progress I'll submit a PR...

Old workflows is a progress bar that runs in the bg - in python2 it works in python3 - it pretty much runs - checks the bg process once and exits... still trying to work through the why.

I've already made a few patches to at least make it run - all related to pickle -> cpickle but I think I have much more to discover

Just opened an issue to track the progress / discuss on this

jeeftor avatar Apr 05 '22 12:04 jeeftor

I feel like this might in python3 be operating differently - but I'm not 100% sure:

image

Something does not seem to be detecting the background process is running - whether its related to pickle -> cPickle or maybe the kill 0 works differently in py3 :)

(Debugging this stuff is awkward at the very least)

jeeftor avatar Apr 05 '22 12:04 jeeftor

image

Additionally when the bg process gets spawned right now its going to /dev/null so I've outputted these to files that I can read with:

tail -f /tmp/err.txt /tmp/out.txt

Which is useful as it discovers a few issue :)

jeeftor avatar Apr 05 '22 12:04 jeeftor

Pull request #5 submitted...

jeeftor avatar Apr 05 '22 12:04 jeeftor