-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Block deletion of resources with unprocessed events #1587
Conversation
398a3d4
to
69eccd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice set of changes here.
@@ -5,9 +5,17 @@ | |||
|
|||
from django.utils.translation import ugettext_lazy as _ | |||
|
|||
__all__ = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
return UnifiedJob.objects.filter(instance_group=self, | ||
status__in=ACTIVE_STATES) | ||
def _get_related_jobs(self): | ||
return UnifiedJob.objects.filter(instance_group=self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice removing all of the extra filtering since the mixin already applies this filter.
Add corresponding log for WorkflowJob submission
No description provided.