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

Example needed for boolean argument #34

Open
vsoch opened this issue Oct 9, 2023 · 3 comments
Open

Example needed for boolean argument #34

vsoch opened this issue Oct 9, 2023 · 3 comments

Comments

@vsoch
Copy link
Contributor

vsoch commented Oct 9, 2023

I tried:

...
    insecure: Optional[bool]=field(
        default=False,
        metadata={
            "help": "Insecure registry using http and not https?", 
            "env_var": False,
            "required": False,
        }
    )

But it is expecting a value:

                 [--kueue-queue-name VALUE]
                 [--kueue-registry VALUE]
                 [--kueue-container VALUE]
                 [--kueue-insecure VALUE]
                 [--kueue-namespace VALUE]
@johanneskoester
Copy link
Contributor

I think you need to set the type arg of field (type=bool).

@johanneskoester
Copy link
Contributor

If it works, can you add an example to the readme here and to the skeleton code in poetry-snakemake-plugin?

@vsoch
Copy link
Contributor Author

vsoch commented Dec 8, 2023

I didn't wind up adding it (and properly testing it) but will keep this on my radar!

I just merged a fully working submit of Job to Kubernetes with kueue! I will do the flux-operator and the other job abstractions next, and (hopefully) if I can get an Americas/Asia Pacific batch working group meeting started up, will present Snakemake + kueue early next year.

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

No branches or pull requests

2 participants