NorthIsUp / alfred-workflow-py3

Full-featured library for writing Alfred 3 & 4 workflows
https://www.deanishe.net/alfred-workflow/
Other
145 stars 14 forks source link

Background Running (tracking) #4

Open jeeftor opened 2 years ago

jeeftor commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago
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 commented 2 years ago

Pull request #5 submitted...