eschnett / Persist.jl

Persistent jobs
Other
17 stars 4 forks source link

Usage as a dependency #10

Open Sov-trotter opened 3 years ago

Sov-trotter commented 3 years ago

Hey. I am trying to livestream some animations via ffmpeg from inside a package via @async. But I want to be able to kill the process, check it's status etc. but it's not possible to do that without knowing the pid. This package solves the above problem and I am happy to use it as a dependency. I wanted to know if:

eschnett commented 3 years ago

@Sov-trotter I haven't used (or even looked at) this package in several years. You might be better off with a different approach.

One way would be to create a small database (see https://juliadb.org) that holds the respective information. That is a bit heavyweight – simpler solutions exist – but databases are safe to use, even if there are several streamers and several other processes looking at them at the same time.

Sov-trotter commented 3 years ago

Ah Okay. I'll try to borrow some code and try to fit it in if possible.