Skip to content
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

[BUG] If a task only specifies resource limit, admin sets the request to a value potentially lower than the limit #264

Closed
3 of 20 tasks
EngHabu opened this issue Apr 13, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@EngHabu
Copy link
Contributor

EngHabu commented Apr 13, 2020

Describe the bug
If a task sets memory_limit=200Mi, admin will set the memory_request=500Mi since that's the default it's configured with. This creates an invalid spec. Limit has to be >= request.

Expected behavior
Admin should set request == limit if limit is set, or to the default if not... and should do the same for the limit (set it == request if not set or to the default limit if not set)

Flyte component

  • Overall
  • Flyte Setup and Installation scripts
  • Flyte Documentation
  • Flyte communication (slack/email etc)
  • FlytePropeller
  • FlyteIDL (Flyte specification language)
  • Flytekit (Python SDK)
  • FlyteAdmin (Control Plane service)
  • FlytePlugins
  • DataCatalog
  • FlyteStdlib (common libraries)
  • FlyteConsole (UI)
  • Other

Environment
Flyte component

  • Sandbox (local or on one machine)
  • Cloud hosted
    • AWS
    • GCP
    • Azure
  • Baremetal
  • Other

Additional context
https://github.com/lyft/flyteadmin/blob/2a065109c8b14f560ef27aa74df67b157c52d9d1/pkg/manager/impl/execution_manager.go#L301-L303

@EngHabu EngHabu added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Apr 13, 2020
@bnsblue
Copy link
Contributor

bnsblue commented Apr 13, 2020

@EngHabu Thank you for filing this bug

@katrogan katrogan removed the untriaged This issues has not yet been looked at by the Maintainers label Sep 22, 2020
eapolinario pushed a commit to eapolinario/flyte that referenced this issue Dec 6, 2022
* Change branch compilation to avoid adding downstream deps

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Fix deepcopy generated bug

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Add checks to make sure compiled workflows remain the same

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Additional unit test to test branch spec generation

Signed-off-by: Ketan Umare <[email protected]>

* Fix compiler unit tests

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Fixed unit test

Signed-off-by: Ketan Umare <[email protected]>

* Fix one unit test and shorten json tags for connections

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Use GetConnections() instead of DeprecatedConnections

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Put back branch node upstream check in CanExecute predicate for backward compatibility

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* lint

Signed-off-by: Haytham Abuelfutuh <[email protected]>

Co-authored-by: Ketan Umare <[email protected]>
eapolinario pushed a commit to eapolinario/flyte that referenced this issue Dec 20, 2022
eapolinario pushed a commit to eapolinario/flyte that referenced this issue Dec 20, 2022
eapolinario pushed a commit to eapolinario/flyte that referenced this issue Dec 20, 2022
…ache (flyteorg#264)

* Added endpoint suffix to service user for pkce token saved in token cache

Signed-off-by: Prafulla Mahindrakar <[email protected]>

* nits

Signed-off-by: Prafulla Mahindrakar <[email protected]>
eapolinario pushed a commit to eapolinario/flyte that referenced this issue Aug 9, 2023
* Change branch compilation to avoid adding downstream deps

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Fix deepcopy generated bug

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Add checks to make sure compiled workflows remain the same

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Additional unit test to test branch spec generation

Signed-off-by: Ketan Umare <[email protected]>

* Fix compiler unit tests

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Fixed unit test

Signed-off-by: Ketan Umare <[email protected]>

* Fix one unit test and shorten json tags for connections

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Use GetConnections() instead of DeprecatedConnections

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Put back branch node upstream check in CanExecute predicate for backward compatibility

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* lint

Signed-off-by: Haytham Abuelfutuh <[email protected]>

Co-authored-by: Ketan Umare <[email protected]>
eapolinario pushed a commit to eapolinario/flyte that referenced this issue Apr 30, 2024
…ache (flyteorg#264)

* Added endpoint suffix to service user for pkce token saved in token cache

Signed-off-by: Prafulla Mahindrakar <[email protected]>

* nits

Signed-off-by: Prafulla Mahindrakar <[email protected]>
austin362667 pushed a commit to austin362667/flyte that referenced this issue May 7, 2024
…ache (flyteorg#264)

* Added endpoint suffix to service user for pkce token saved in token cache

Signed-off-by: Prafulla Mahindrakar <[email protected]>

* nits

Signed-off-by: Prafulla Mahindrakar <[email protected]>
robert-ulbrich-mercedes-benz pushed a commit to robert-ulbrich-mercedes-benz/flyte that referenced this issue Jul 2, 2024
…ache (flyteorg#264)

* Added endpoint suffix to service user for pkce token saved in token cache

Signed-off-by: Prafulla Mahindrakar <[email protected]>

* nits

Signed-off-by: Prafulla Mahindrakar <[email protected]>
troychiu pushed a commit that referenced this issue Jul 8, 2024
## Overview
Adds a golangci config (matching unionai/cloud) and does a bunch of clean up to get things _mostly_ lint free

## Test Plan
Ran a sanity test with actors locally, but otherwise should be low risk (just refactoring)

## Rollout Plan (if applicable)
N/A

## Upstream Changes
Should this change be upstreamed to OSS (flyteorg/flyte)? If so, please check this box for auditing. Note, this is the responsibility of each developer. See [this guide](https://unionai.atlassian.net/wiki/spaces/ENG/pages/447610883/Flyte+-+Union+Cloud+Development+Runbook/#When-are-versions-updated%3F).
- [ ] To be upstreamed

## Issue
fixes EXO-100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants