Skip to content

Commit

Permalink
Fix scheduler trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaFrancis committed Nov 21, 2024
1 parent eb58f83 commit e889f45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nbs/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
" current_file = data_dir / f\"train-{uuid4()}.jsonl\"\n",
" results.clear()\n",
" finally:\n",
" scheduler.trigger().result() # force upload last result\n",
" if delete_files_after:\n",
" shutil.rmtree(dataset_dir)\n",
"\n",
Expand Down Expand Up @@ -500,6 +501,9 @@
" repo_id=f\"personas-translation-{uuid4()}\",\n",
" max_items_per_file=2, # It will create a local file each 2 translations \n",
")\n",
"assert len(translations) == len(personas)\n",
"\n",
"new_dataset = load_dataset(repo_id)\n",
"assert len(translations) == len(personas)"
]
},
Expand Down

0 comments on commit e889f45

Please sign in to comment.