Skip to content

Conversation

@evamillan
Copy link
Contributor

This PR changes the ScheduledTask model to make the job_type field unique. Migration 0012 removes the possible duplicate tasks, keeping the most recent one of each type, before the field is altered in migration 0013.

Fixes #1018.

Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The platform can have several scheduled tasks for retrieving data from repositories. Would this be a problem? I think so...

@evamillan
Copy link
Contributor Author

The platform can have several scheduled tasks for retrieving data from repositories. Would this be a problem? I think so...

You're right, it would be a problem if they have the same job type.

Restricts the scheduled tasks to only allow one with
the 'affiliate' and one with the 'unify' job types.

Signed-off-by: Eva Millán <evamillan@bitergia.com>
Sorts the list of scheduled tasks by latest execution by default.

Signed-off-by: Eva Millán <evamillan@bitergia.com>
@evamillan
Copy link
Contributor Author

I updated the PR. Now, only the affiliate and unify tasks are limited to one of each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings page can only show one scheduled task

2 participants