Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export.task prevents task purge to succeed #3530

Closed
mdellweg opened this issue Jan 27, 2023 · 3 comments · Fixed by #3709
Closed

export.task prevents task purge to succeed #3530

mdellweg opened this issue Jan 27, 2023 · 3 comments · Fixed by #3709
Assignees

Comments

@mdellweg
Copy link
Member

We probably want to classify the foreign key here
https://github.com/pulp/pulpcore/blob/main/pulpcore/app/models/exporter.py#L30
to be SET_NULL.

@ggainey
Copy link
Contributor

ggainey commented Jan 27, 2023

We should also need to teach task-purge to continue in the face of errors - just because one/several tasks can't be deleted, shouldn't fail the run. We don't know what models might do this exact thing in the future...

@dralley
Copy link
Contributor

dralley commented Jan 27, 2023

+1 to both

@MichalPysik MichalPysik self-assigned this Apr 4, 2023
MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 4, 2023
When there was a completed export in the task list, task purge
would fail as the task could not be deleted because of a dependency
to a linked object. This issue has been resolved.

When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: pulp#3530
@MichalPysik
Copy link
Member

MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 4, 2023
When there was a completed export in the task list, task purge
would fail as the task could not be deleted because of a dependency
to a linked object. This issue has been resolved.

When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: pulp#3530
MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 4, 2023
When there was a completed export in the task list, task purge
would fail as the task could not be deleted because of a dependency
to a linked object. This issue has been resolved.

When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: pulp#3530
MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 5, 2023
When there was a completed export in the task list, task purge
would fail as the task could not be deleted because of a dependency
to a linked object. This issue has been resolved.

fixes: pulp#3530
MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 19, 2023
When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: pulp#3530
MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 25, 2023
When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: pulp#3530
MichalPysik added a commit to MichalPysik/pulpcore that referenced this issue Apr 25, 2023
When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: pulp#3530
mdellweg pushed a commit that referenced this issue Apr 26, 2023
When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: #3530
patchback bot pushed a commit that referenced this issue Apr 26, 2023
When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: #3530
(cherry picked from commit eb1117e)
ipanova pushed a commit that referenced this issue Apr 26, 2023
When an object could not be deleted, the purge task would fail.
This has been reworked  so that the purge continues to delete
other tasks and informs the user about tasks that could not be
deleted.

fixes: #3530
(cherry picked from commit eb1117e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants