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-830895: Can I keep async queries running when closing session? #36

Closed
hota911 opened this issue Jun 1, 2023 · 1 comment
Closed
Assignees

Comments

@hota911
Copy link

hota911 commented Jun 1, 2023

Hi,

I'd like to use AsyncJob to unload data to S3 asynchronously.
Our service may be killed any time and session can be closed.
It seems all queries are canceled when the session is closed


Is there way to run async job and keep it even when session is closed?

Thank you

@github-actions github-actions bot changed the title Can I keep async queries running when closing session? SNOW-830895: Can I keep async queries running when closing session? Jun 1, 2023
@sfc-gh-jfreeberg sfc-gh-jfreeberg self-assigned this Jul 20, 2023
@sfc-gh-jfreeberg
Copy link
Collaborator

Hi @hota911 -- Yes when the .close() method is called, the jobs will be killed... so don't call the .close() method. The server won't kill the jobs if the client disconnects.

Let me know if you have any other questions!

CC @sfc-gh-bli

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