-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jobs] Delete tasks with no job due to Redis error
Removes the newly created ScheduledTask from the database if the job could not be enqueued due to a Redis connection error. Signed-off-by: Eva Millán <evamillan@bitergia.com>
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: Remove tasks that fail to be scheduled | ||
category: fixed | ||
author: Eva Millan <evamillan@bitergia.com> | ||
issue: null | ||
notes: > | ||
When there was an issue with the Redis connection when | ||
a task was created, the task was added to the database | ||
but there was not scheduled job linked to it. Tasks are | ||
now removed from the database and an error is raised in | ||
this case. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters