@instrumented_task(name='sentry.tasks.clear_expired_resolutions', time_limit=15, soft_time_limit=10)
def clear_expired_resolutions(release_id):
 try:
  release = Release.objects.get_from_cache(id=release_id)
 except Release.DoesNotExist:
  return
 resolution_list = GroupResolution.objects.filter(release__projects=release.projects.all(), release__date_added__lt=release.date_added).exclude(release=release)
 resolution_list.update(status=GroupResolutionStatus.RESOLVED)
 for resolution in resolution_list:
  activity = Activity.objects.filter(group=resolution.group_id, type=Activity.SET_RESOLVED_IN_RELEASE, ident=resolution.id).order_by('-datetime')[0]
  activity.update(data={'version': release.version})

@ instrumented_task ( name = 'sentry.tasks.clear_expired_resolutions' , time_limit = 15 , soft_time_limit = 10 ) def clear_expired_resolutions ( release_id ) : try : release = Release . objects . get_from_cache ( id = release_id ) except Release . DoesNotExist : return resolution_list = GroupResolution . objects . filter ( release__projects = release . projects . all ( ) , release__date_added__lt = release . date_added ) . exclude ( release = release ) resolution_list . update ( status = GroupResolutionStatus . RESOLVED ) for resolution in resolution_list : activity = Activity . objects . filter ( group = resolution . group_id , type = Activity . SET_RESOLVED_IN_RELEASE , ident = resolution . id ) . order_by ( '-datetime' ) [ 0 ] activity . update ( data = { 'version' : release . version } )
this should be fired when release_id is created .