Skip to content

Commit

Permalink
Add workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
lewtun committed Oct 13, 2023
1 parent cd8f17f commit e73e5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run_raft_evaluation.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Run RAFT evaluation

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * SUN' # Run evaluation at midnight every Sunday

Expand Down
8 changes: 5 additions & 3 deletions scripts/run_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run(benchmark: str, evaluation_dataset: str, end_date: str, previous_days: i
start_date = pd.to_datetime(end_date) - pd.Timedelta(days=previous_days)
typer.echo(f"Evaluating submissions on benchmark {benchmark} from {start_date} to {end_date}")
submissions = get_benchmark_repos(benchmark, use_auth_token=HF_TOKEN, start_date=start_date, end_date=end_date)
typer.echo(f"Found {len(submissions)} submissions to evaluate on benchmark {benchmark}")
typer.echo(f"Found {len(submissions)} submissions to evaluate on benchmark {benchmark}: {[s.id for s in submissions]}")
for submission in submissions:
submission_dataset = submission.id
typer.echo(f"Evaluating submission {submission_dataset}")
Expand Down Expand Up @@ -119,8 +119,10 @@ def run(benchmark: str, evaluation_dataset: str, end_date: str, previous_days: i
if project_status["status"] == 3:
is_data_processing_success = True
print("✅ Data processing complete!")
time.sleep(10)
typer.echo("🥱 Dataset not ready, waiting 10 more seconds ...")
time.sleep(3)
else:
time.sleep(10)
typer.echo("🥱 Dataset not ready, waiting 10 more seconds ...")

# Approve training job
train_job_resp = http_post(
Expand Down

0 comments on commit e73e5de

Please sign in to comment.