Updated scroll rendering bug
This commit is contained in:
@@ -4692,12 +4692,12 @@ func remoteOrgJobHandler(org shuffle.Org, interval int) error {
|
||||
// Handles configuration items during Shuffle startup
|
||||
func runInit(ctx context.Context) {
|
||||
// Setting stats for backend starts (failure count as well)
|
||||
log.Printf("Starting INIT setup")
|
||||
log.Printf("[DEBUG] Starting INIT setup")
|
||||
err := increaseStatisticsField(ctx, "backend_executions", "", 1, "")
|
||||
if err != nil {
|
||||
log.Printf("Failed increasing local stats: %s", err)
|
||||
}
|
||||
log.Printf("Finalized init statistics update")
|
||||
log.Printf("[DEBUG] Finalized init statistics update")
|
||||
|
||||
httpProxy := os.Getenv("HTTP_PROXY")
|
||||
if len(httpProxy) > 0 {
|
||||
@@ -4744,6 +4744,7 @@ func runInit(ctx context.Context) {
|
||||
*/
|
||||
|
||||
setUsers := false
|
||||
log.Printf("[DEBUG] Getting organizations")
|
||||
orgQuery := datastore.NewQuery("Organizations")
|
||||
var activeOrgs []shuffle.Org
|
||||
_, err = dbclient.GetAll(ctx, orgQuery, &activeOrgs)
|
||||
@@ -5930,15 +5931,15 @@ func initHandlers() {
|
||||
var err error
|
||||
ctx := context.Background()
|
||||
|
||||
log.Printf("Starting Shuffle backend - initializing database connection")
|
||||
log.Printf("[DEBUG] Starting Shuffle backend - initializing database connection")
|
||||
//requestCache = cache.New(5*time.Minute, 10*time.Minute)
|
||||
dbclient, err = datastore.NewClient(ctx, gceProject, option.WithGRPCDialOption(grpc.WithNoProxy()))
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("DBclient error during init: %s", err))
|
||||
panic(fmt.Sprintf("[DEBUG] Database client error during init: %s", err))
|
||||
}
|
||||
|
||||
_ = shuffle.RunInit(*dbclient, storage.Client{}, gceProject, "onprem", true)
|
||||
log.Printf("Finished Shuffle database init")
|
||||
log.Printf("[DEBUG] Finished Shuffle database init")
|
||||
|
||||
go runInit(ctx)
|
||||
|
||||
@@ -6090,10 +6091,10 @@ func main() {
|
||||
|
||||
innerPort := os.Getenv("BACKEND_PORT")
|
||||
if innerPort == "" {
|
||||
log.Printf("Running on %s:5001", hostname)
|
||||
log.Printf("[DEBUG] Running on %s:5001", hostname)
|
||||
log.Fatal(http.ListenAndServe(":5001", nil))
|
||||
} else {
|
||||
log.Printf("Running on %s:%s", hostname, innerPort)
|
||||
log.Printf("[DEBUG] Running on %s:%s", hostname, innerPort)
|
||||
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", innerPort), nil))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user