Skip to content

Commit

Permalink
Prevent any task from starting when another backup process is still r…
Browse files Browse the repository at this point in the history
…unning.
  • Loading branch information
rogerfar committed Jul 25, 2024
1 parent 227c4d1 commit 891ffb6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.20] - 2024-07-24
### Changed
- Prevent any task from starting for an item when another job has any uncompleted tasks for it.

## [1.0.19] - 2024-07-24
### Added
- Add task to restore a SQL Server database.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datack",
"version": "1.0.19",
"version": "1.0.20",
"description": "Simple database backup tool.",
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Datack.Agent.Service/Datack.Agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<OutputType>Exe</OutputType>
<Version>1.0.19</Version>
<Version>1.0.20</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Datack.Web.Service/Services/JobRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public async Task<Guid> SetupJobRun(Job job, IList<String>? overrideItemList, Ca
// If so, skip it in the run.
foreach (var jobRunTask in jobRunTasks)
{
if (runningTasks.Count(m => m.JobTaskId == jobRunTask.JobTaskId && m.ItemName == jobRunTask.ItemName && m.Completed == null) > 0)
if (runningTasks.Count(m => m.ItemName == jobRunTask.ItemName && m.Completed == null) > 0)
{
_logger.LogDebug("Skipping task {type} for job {name} as it's already running", jobTask.Type, job.Name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Datack.Web.Web/Datack.Web.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<Version>1.0.19</Version>
<Version>1.0.20</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/react/src/pages/settings/SettingsOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const SettingsOverview: FC = () => {
<Heading size="md">Server Logging</Heading>
</Box>
<Box marginBottom={4}>
Server version <span id="version">1.0.19</span>
Server version <span id="version">1.0.20</span>
</Box>
<Box marginBottom={4}>
<SettingsSetting
Expand Down

0 comments on commit 891ffb6

Please sign in to comment.