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

SNOW-1367016: How can a Snowflake Job be started using the CLI? #1034

Closed
zaramzamzam opened this issue May 5, 2024 · 3 comments
Closed

SNOW-1367016: How can a Snowflake Job be started using the CLI? #1034

zaramzamzam opened this issue May 5, 2024 · 3 comments

Comments

@zaramzamzam
Copy link

SnowCLI version

2.2.0

Python version

3.11.7

Platform

macOS-14.4.1-arm64-arm-64bit

What happened

Previously it was possible to start a Job using
snow snowpark jobs create this was removed in a previous version.

The CLI has the hidden snow spcs job create ... command.

Is this the intended way to create a Job?
Is it intended that this is hidden?

Console output

❯ snow spcs job --help

 Usage: snow spcs job [OPTIONS] COMMAND [ARGS]...

 Manages Snowpark jobs.

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help  -h        Show this message and exit.                                │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ create   Creates a job to run in a compute pool.                             │
│ logs     Retrieves local logs from a job container.                          │
│ status   Returns the status of a named Snowpark Container Services job.      │
╰──────────────────────────────────────────────────────────────────────────────╯


### How to reproduce

run `snow spcs job --help`
@github-actions github-actions bot changed the title How can a Snowflake Job be started using the CLI? SNOW-1367016: How can a Snowflake Job be started using the CLI? May 5, 2024
@zaramzamzam
Copy link
Author

In order to conform to the tutorials I added a PR #1036 that introduces the name parameter and creates the Job using execute job service ... .
If snow spcs job create ... is the intended way to create jobs this might be helpful.

@sfc-gh-jsikorski
Copy link
Collaborator

Hi,
thanks for reporting the issue. It is hidden by design- jobs api is going through some changes, and the previous implementation used is deprecated. We will reintroduce it with new syntax in one of the next versions.

@sfc-gh-turbaszek
Copy link
Collaborator

Closing as jobs are not supported in CLI at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants