There are two possibilities here:
-
Set
time_budget_swithinTuneConfig(time_budget_s=max_seconds). This is a global time budget in seconds that the Tune experiment will run for. After this many seconds, all trials will be stopped. -
time_total_sis reported as a default metric by Tune, which is the number of seconds elapsed since the start of the experiment. You can try something like:stop={"time_total_s": max_seconds}. However, this timer is on a per-trial basis, so option 1 may be what you want in this case.
This thread asks a similar question: How to use time_total_s as a stop condition?.