upload_thread
module core.threads.upload_thread
class UploadThread
Thread for uploading data to a server via SCP.
See https://github.com/dostuffthatmatters/circadian-scp-upload for a description of how this is implemented.
method get_new_thread_object
get_new_thread_object() → Thread
Return a new thread object that is to be started.
method main
main(headless: bool = False) → None
Main entrypoint of the thread. In headless mode, don't write to log files but print to console.
method should_be_running
should_be_running(config: Config) → bool
Based on the config, should the thread be running or not?