From b5737fb4c5ff54ef272c6b8454c970e9ccefc382 Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:44:13 +0200 Subject: [PATCH] remove retry from withdrawals (#396) --- src/Jobs/PerformWithdrawalJob.cs | 3 +-- src/Pages/Wallets.razor | 3 +-- src/Pages/Withdrawals.razor | 5 ++--- src/Rpc/NodeGuardService.cs | 3 +-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Jobs/PerformWithdrawalJob.cs b/src/Jobs/PerformWithdrawalJob.cs index 93cd9dcb..74c68839 100644 --- a/src/Jobs/PerformWithdrawalJob.cs +++ b/src/Jobs/PerformWithdrawalJob.cs @@ -66,9 +66,8 @@ public async Task Execute(IJobExecutionContext context) } _logger.LogError(e, "Error on {JobName}", nameof(PerformWithdrawalJob)); - throw new JobExecutionException(e, false); } _logger.LogInformation("{JobName} ended", nameof(PerformWithdrawalJob)); } -} \ No newline at end of file +} diff --git a/src/Pages/Wallets.razor b/src/Pages/Wallets.razor index 62ad138c..53606168 100644 --- a/src/Pages/Wallets.razor +++ b/src/Pages/Wallets.razor @@ -1489,8 +1489,7 @@ var map = new JobDataMap(); map.Put("withdrawalRequestId", withdrawalRequest.Id); - var retryList = RetriableJob.ParseRetryListFromString(Constants.JOB_RETRY_INTERVAL_LIST_IN_MINUTES); - var job = RetriableJob.Create(map, withdrawalRequest.Id.ToString(), retryList); + var job = SimpleJob.Create(map, withdrawalRequest.Id.ToString()); await scheduler.ScheduleJob(job.Job, job.Trigger); if (withdrawalRequest != null) diff --git a/src/Pages/Withdrawals.razor b/src/Pages/Withdrawals.razor index a3275bbf..caf8bf67 100644 --- a/src/Pages/Withdrawals.razor +++ b/src/Pages/Withdrawals.razor @@ -1012,8 +1012,7 @@ var map = new JobDataMap(); map.Put("withdrawalRequestId", _selectedRequest.Id); - var retryList = RetriableJob.ParseRetryListFromString(Constants.JOB_RETRY_INTERVAL_LIST_IN_MINUTES); - var job = RetriableJob.Create(map, _selectedRequest.Id.ToString(), retryList); + var job = SimpleJob.Create(map, _selectedRequest.Id.ToString()); await scheduler.ScheduleJob(job.Job, job.Trigger); if (_selectedRequest != null) @@ -1066,4 +1065,4 @@ _amount = _minimumWithdrawalAmount; } -} \ No newline at end of file +} diff --git a/src/Rpc/NodeGuardService.cs b/src/Rpc/NodeGuardService.cs index 52d96fd9..1a3b9433 100644 --- a/src/Rpc/NodeGuardService.cs +++ b/src/Rpc/NodeGuardService.cs @@ -272,8 +272,7 @@ await _coinSelectionService.LockUTXOs(utxos, withdrawalRequest, { var map = new JobDataMap(); map.Put("withdrawalRequestId", withdrawalRequest.Id); - var retryList = RetriableJob.ParseRetryListFromString(Constants.JOB_RETRY_INTERVAL_LIST_IN_MINUTES); - var job = RetriableJob.Create(map, withdrawalRequest.Id.ToString(), retryList); + var job = SimpleJob.Create(map, withdrawalRequest.Id.ToString()); await _scheduler.ScheduleJob(job.Job, job.Trigger); }