Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[Ready to be Merged] BackgroundProcessing #1451
Conversation
|
def backgroundOutput(self, *args):
raise NotImplementedErrorwith: def backgroundOutput(self, *args):
print argsNow add Now try to do something (e.g. If you don't, I'll probably add update-without-restart feature and this PR can be merged. |
|
Does anyone want to test this? |
|
Reference: #1447. |
|
This plugin allows sites to do some work in background, while the site is closed. For example, one could rebuild indexes (if you are using your own database, not SQLite), or, if your site uses my PeerMessage plugin, you could react to pings. If you need some example code, tell me, I'll post it. |
|
I'm going to be testing this a little soon. Also, example code would be useful. I'm wondering a few things:
|
|
Thank you for testing, @krixano! I'll post the example code and the answers to your question as updates to this comment right now. |
|
You can use most of the default functions:
|
|
Using ZeroFrame commands is supported:
Or to receive commands, like
|
|
I don't think so -- that site is outdated. |
|
@DaniellMesquita What's your ID on ZeroNet? |
|
|
Thank you! |
|
@shortcutme @HelloZeroNet Finally, this PR is ready to be merged! |
b0970cf
to
3502e59
|
@krixano @imachug @HelloZeroNet Are here also some issues? Can it be merged? |
|
The only issue I can think of is a sandbox escape possibility - but I promise I've checked it several times. I'd like others to do it as well, though. |
|
Does this also need Python 3 version? |
|
|
Since Git Center is away from ZeroNet at the moment, I believe he wanted someone to create a pull request for this BackgroundProcessing plugin, since he says it is now finished.
I haven't tested this yet, but I assume @imachug has.