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

Create separate oneshot session per transformation #1371

Merged
merged 2 commits into from
Feb 22, 2025

Conversation

dmivankov
Copy link
Contributor

No description provided.

@dmivankov dmivankov self-assigned this Jan 15, 2025
Comment on lines +650 to +654
session = client.iam.sessions.create(session_type="ONESHOT_TOKEN_EXCHANGE")
if session is None:
print("[bold red]ERROR:[/] Could not get a oneshot session.")
return False
nonce = NonceCredentials(session_id=session.id, nonce=session.nonce, cdf_project_name=client.config.project)
Copy link
Collaborator

@doctrino doctrino Feb 22, 2025

Choose a reason for hiding this comment

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

We do not expose more than running one transformation at a time, so the user would never run into this issue. Thus, no changelog entry.

@doctrino doctrino marked this pull request as ready for review February 22, 2025 13:29
@doctrino doctrino requested a review from a team as a code owner February 22, 2025 13:29
@doctrino doctrino self-requested a review February 22, 2025 13:29
@doctrino doctrino merged commit 1d5df57 into main Feb 22, 2025
10 checks passed
@doctrino doctrino deleted the session_per_transform branch February 22, 2025 13:30
Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
15869 11259 71% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite_toolkit/_cdf_tk/commands/run.py 63% 🟢
TOTAL 63% 🟢

updated for commit: 5164436 by action🐍

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.

2 participants