|
9 | 9 |
|
10 | 10 | amaltheadevv1alpha1 "github.com/SwissDataScienceCenter/amalthea/api/v1alpha1" |
11 | 11 | "github.com/SwissDataScienceCenter/amalthea/internal/controller/config" |
12 | | - "github.com/oklog/ulid/v2" |
13 | 12 | appsv1 "k8s.io/api/apps/v1" |
14 | 13 | batchv1 "k8s.io/api/batch/v1" |
15 | 14 | v1 "k8s.io/api/core/v1" |
@@ -824,14 +823,15 @@ func (c ChildResourceUpdates) Status( |
824 | 823 |
|
825 | 824 | hibernationDate := calculateHibernationDate(log, cr.GetCreationTimestamp(), cr.Status, cr.Spec.Culling) |
826 | 825 |
|
827 | | - runID := cr.Status.RunId |
828 | | - if cr.Spec.Hibernated { |
829 | | - // The session is getting hibernated, unset the run ID |
830 | | - runID = "" |
831 | | - } else if runID == "" { |
832 | | - // The session just got created or is being resumed, set the new run ID |
833 | | - runID = ulid.Make().String() |
834 | | - } |
| 826 | + // NEW |
| 827 | + // runID := cr.Status.RunId |
| 828 | + // if cr.Spec.Hibernated { |
| 829 | + // // The session is getting hibernated, unset the run ID |
| 830 | + // runID = "" |
| 831 | + // } else if runID == "" { |
| 832 | + // // The session just got created or is being resumed, set the new run ID |
| 833 | + // runID = ulid.Make().String() |
| 834 | + // } |
835 | 835 |
|
836 | 836 | status := amaltheadevv1alpha1.AmaltheaSessionStatus{ |
837 | 837 | Conditions: Conditions(state, ctx, r, cr), |
|
0 commit comments