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

Tasks that are built with --has-batch and --no-lambda still have a lambda block in definition.yml #123

Closed
stark525 opened this issue Mar 7, 2022 · 1 comment · Fixed by #150
Labels
bug Something isn't working small
Milestone

Comments

@stark525
Copy link
Contributor

stark525 commented Mar 7, 2022

When creating a batch only task:

cirrus task create a_task --has-batch --no-lambda

In definition.yml, there is still a lambda block, even though --no-lambda is specified. The desired behavior would this would not get added to the definition.yml, since it should not be used.

@jkeifer jkeifer added the bug Something isn't working label May 25, 2022
@jkeifer jkeifer added this to the 0.7.0 milestone May 25, 2022
@jkeifer jkeifer added the small label May 25, 2022
@jkeifer
Copy link
Collaborator

jkeifer commented Aug 29, 2022

It looks like this may have been fixed already, but while testing I reconsidered the UI here in light of the loss of my initial bias in preference of lambda task.

Now, instead of defaulting lambda on, I made the task type a required option via -t or --type. Valid values are batch and lambda, and it can be specified multiple times in the case of a task that is both batch and lambda. For example:

❯ cirrus create task -t batch batch-task 1234
task batch-task created
❯ cirrus create task -t lambda lambda-task 1234
task lambda-task created
❯ cirrus create task -t lambda --type batch batch-lambda-task 1234
task batch-lambda-task created

In any case, running the three tests above showed the expected behavior, i.e., the lambda block was omitted from the definition.yml in the case of batch-only.

jkeifer added a commit that referenced this issue Aug 29, 2022
@jkeifer jkeifer mentioned this issue Aug 29, 2022
jkeifer added a commit that referenced this issue Aug 31, 2022
@jkeifer jkeifer linked a pull request Sep 8, 2022 that will close this issue
jkeifer added a commit that referenced this issue Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working small
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants