-
Notifications
You must be signed in to change notification settings - Fork 58
outset
file on_demand
line 538
#91
Comments
You could run git blame for the time that code was added (although it's probably been a few years at this point) to see what feature it was being delivered alongside (I'm assuming it's on-demand stuff). |
I don't have an issue, but to me this looked like a file being created and deleted again, and maybe this was actually not what was needed, or I don't understand these lines of Python. Just close this… |
Normally I can't interrogate what my fevered mind was thinking six years ago, but luckily we have git blame! ffed742 is where that was added. And looking at that, it seems that the problem was a race condition where the launch daemon would trigger again before the on demand job had a chance to remove the trigger file. (Launchd runs on a 10s loop iirc). So this was a (very naive; again, fevered mind and six years ago) way of ensuring the trigger file was removed very early after the on demand job was kicked off. I suppose it would make more sense to put this at the beginning of the on demand section, or maybe to rethink my life choices that led me to that point 😂. Cheers |
Thank you so much, I really appreciate this explanation. Happy New Year!!! |
I have been looking into this solution, and we use it on several customers, thank you very much!
On line 538 of
outset
(as part ofon_demand
argument), this is done:I might not now all about python, but to me it looks like you are creating the cleanup_trigger file, and deleting it again. What am I missing?
The text was updated successfully, but these errors were encountered: