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

Added cluster support for ECS and corrected status debug message #2045

Merged
merged 4 commits into from
Sep 19, 2017

Conversation

vanhove
Copy link
Contributor

@vanhove vanhove commented Feb 27, 2017

Description

  • Added luigi.Parameter for cluster to be able to use another cluster then the default one.

  • Fixed an issue with the status in debug message when following up running ECS tasks.

Motivation and Context

I needed support to run ECS tasks on other clusters then the default one.

Have you tested this? If so, how?

I ran my jobs with this code and it works for me.

@mention-bot
Copy link

@vanhove, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jfeala and @adamchainz to be potential reviewers.

@@ -133,6 +132,7 @@ class ECSTask(luigi.Task):

task_def_arn = luigi.Parameter(default=None)
task_def = luigi.Parameter(default=None)
cluster = luigi.Parameter(default=None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you update the above docstring to include this parameter and a description? (I don't use ECS, so perhaps this is obvious and unnecessary)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the docstring

@dlstadther
Copy link
Collaborator

Also, can you confirm that this replaces PR #1717 ?

@adamchainz
Copy link
Contributor

Afraid I'm useless as a reviewer, I barely know what luigi is

Copy link
Collaborator

@dlstadther dlstadther left a comment

Choose a reason for hiding this comment

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

While this looks ok to me, I would like an ECS luigi user to confirm.

@jfeala
Copy link
Contributor

jfeala commented Feb 27, 2017

Please add a default='default' to the Parameter, to prevent breaking for users running on their default cluster, as is done in PR #1717. Also, it doesn't completely replace #1717 because there are other improvements in that PR (e.g., checking exit codes)

@vanhove
Copy link
Contributor Author

vanhove commented Feb 27, 2017

@jfeala Thanks for pointing that out. I pushed the change.

@dlstadther dlstadther merged commit a45d0f3 into spotify:master Sep 19, 2017
@dlstadther
Copy link
Collaborator

@vanhove Thanks for your first github contribution! Sorry for such delay in merging!

@jfeala jfeala mentioned this pull request Jan 2, 2018
This was referenced Jun 29, 2022
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.

6 participants