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

Enable queuing_budget in Workflow Metadata #97

Merged
merged 9 commits into from
Apr 8, 2020

Conversation

migueltol22
Copy link
Contributor

@migueltol22 migueltol22 commented Mar 31, 2020

TL;DR

Allow a user to specify queueing_budget parameter for their workflow. This parameter corresponds to the amount of time a user is willing to wait for a workflow to be executed.

FlyteIDL PR: flyteorg/flyteidl#50

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

flyteorg/flyte#245

Follow-up issue

NA

flytekit/models/core/workflow.py Show resolved Hide resolved
flytekit/common/workflow.py Show resolved Hide resolved
return _core_workflow.WorkflowMetadata()
workflow_metadata = _core_workflow.WorkflowMetadata()
if self._queuing_budget:
workflow_metadata.queuing_budget.FromTimedelta(self.queuing_budget)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sets the value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct.

flytekit/sdk/workflow.py Show resolved Hide resolved
@@ -1,4 +1,4 @@
from __future__ import absolute_import
import flytekit.plugins

__version__ = '0.7.0b1'
__version__ = '0.7.0b2'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b3 please.

@migueltol22 migueltol22 merged commit bf3bd0a into master Apr 8, 2020
max-hoffman pushed a commit to dolthub/flytekit that referenced this pull request May 11, 2021
* support queuing budget in workflow metadata

* add queuing budget to wf

* add typehint to docstring

* add test_workflow_queueing_budget

* b3 and add test with queuing budget not set

* add test_workflow_with_queuing_budget

* upd test name

Co-authored-by: Yee Hing Tong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants