Check if task is already being executed before running again.

This commit is contained in:
2023-05-19 19:20:06 +02:00
parent d659a26987
commit 312672a05c
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,6 @@
namespace Tranga;
using Newtonsoft.Json;
namespace Tranga;
public class TrangaTask
{
@ -8,6 +10,7 @@ public class TrangaTask
public Task task { get; }
public Publication? publication { get; }
public string language { get; }
[JsonIgnore]public bool isBeingExecuted { get; set; }
public TrangaTask(string connectorName, Task task, Publication? publication, TimeSpan reoccurrence, string language = "")
{