diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-02 22:08:57 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 01:16:39 +0200 |
| commit | a3642d8265a8186409e8755608609dee9dd2fbf6 (patch) | |
| tree | a04bfe348a20e6926fbbf0640b685dce3d3dcf59 /src/lib/upload_job.cc | |
| parent | 550981f6a5744e97320aeca2e838449e5be8801e (diff) | |
Add retry support for uploads.
Diffstat (limited to 'src/lib/upload_job.cc')
| -rw-r--r-- | src/lib/upload_job.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/upload_job.cc b/src/lib/upload_job.cc index 4ca5a64eb..e22135d1a 100644 --- a/src/lib/upload_job.cc +++ b/src/lib/upload_job.cc @@ -30,6 +30,7 @@ #include "dcpomatic_log.h" #include "film.h" #include "log.h" +#include "job_manager.h" #include "scp_uploader.h" #include "upload_job.h" #include <fmt/format.h> @@ -37,6 +38,7 @@ #include "i18n.h" +using std::make_shared; using std::min; using std::shared_ptr; using std::string; @@ -117,3 +119,11 @@ UploadJob::set_status(string s) boost::mutex::scoped_lock lm(_status_mutex); _status = s; } + + +void +UploadJob::retry() const +{ + JobManager::instance()->add(make_shared<UploadJob>(film(), _destination)); +} + |
