Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/diffgram/diffgram
/ commit_with_rollback
Function
commit_with_rollback
shared/regular/regular_methods.py:21–26 ·
view source on GitHub ↗
(session)
Source
from the content-addressed store, hash-verified
19
20
21
def
commit_with_rollback(session):
22
try
:
23
session.commit()
24
except
:
25
session.rollback()
26
raise
27
28
29
def
clean_up_temp_dir(path):
Callers
13
test__add_file_into_job
Method · 0.90
test_remove_directory_from_all_attached_jobs
Method · 0.90
test_remove_job_from_all_dirs
Method · 0.90
test_create_task_from_file
Method · 0.90
test_add_file_to_all_jobs
Method · 0.90
test_create_file_links_for_attached_dirs
Method · 0.90
test_execute_after_launch_strategy
Method · 0.90
test_execute_after_launch_strategy
Method · 0.90
test_execute_after_launch_strategy
Method · 0.90
try_to_enqueue_new_action_flows
Method · 0.90
generate_sample_files_for_dataset
Method · 0.90
new
Method · 0.90
Calls
1
commit
Method · 0.80
Tested by
9
test__add_file_into_job
Method · 0.72
test_remove_directory_from_all_attached_jobs
Method · 0.72
test_remove_job_from_all_dirs
Method · 0.72
test_create_task_from_file
Method · 0.72
test_add_file_to_all_jobs
Method · 0.72
test_create_file_links_for_attached_dirs
Method · 0.72
test_execute_after_launch_strategy
Method · 0.72
test_execute_after_launch_strategy
Method · 0.72
test_execute_after_launch_strategy
Method · 0.72