mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 16:05:06 +01:00 
			
		
		
		
	Merge branch 'dev' into rework_status_view
This commit is contained in:
		| @@ -2,7 +2,7 @@ package graph | ||||
|  | ||||
| // This file will be automatically regenerated based on the schema, any resolver implementations | ||||
| // will be copied through when generating and any unknown code will be moved to the end. | ||||
| // Code generated by github.com/99designs/gqlgen version v0.17.66 | ||||
| // Code generated by github.com/99designs/gqlgen version v0.17.78 | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| @@ -35,6 +35,11 @@ func (r *jobResolver) StartTime(ctx context.Context, obj *schema.Job) (*time.Tim | ||||
| 	return ×tamp, nil | ||||
| } | ||||
|  | ||||
| // Exclusive is the resolver for the exclusive field. | ||||
| func (r *jobResolver) Exclusive(ctx context.Context, obj *schema.Job) (int, error) { | ||||
| 	panic(fmt.Errorf("not implemented: Exclusive - exclusive")) | ||||
| } | ||||
|  | ||||
| // Tags is the resolver for the tags field. | ||||
| func (r *jobResolver) Tags(ctx context.Context, obj *schema.Job) ([]*schema.Tag, error) { | ||||
| 	return r.Repo.GetTags(repository.GetUserFromContext(ctx), obj.ID) | ||||
| @@ -43,7 +48,7 @@ func (r *jobResolver) Tags(ctx context.Context, obj *schema.Job) ([]*schema.Tag, | ||||
| // ConcurrentJobs is the resolver for the concurrentJobs field. | ||||
| func (r *jobResolver) ConcurrentJobs(ctx context.Context, obj *schema.Job) (*model.JobLinkResultList, error) { | ||||
| 	// FIXME: Make the hardcoded duration configurable | ||||
| 	if obj.Exclusive != 1 && obj.Duration > 600 { | ||||
| 	if obj.Shared != "none" && obj.Duration > 600 { | ||||
| 		return r.Repo.FindConcurrentJobs(ctx, obj) | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user