@huggingface/hub
Version:
Utilities to interact with the Hugging Face hub
22 lines • 730 B
TypeScript
import type { CredentialsParams } from "../../types/public";
import type { ApiJob } from "../../types/api/api-jobs";
/**
* Trigger a scheduled job to run immediately.
* Returns the job that was triggered, or null if another instance is already running.
*/
export declare function runScheduledJob(params: {
/**
* The namespace (username or organization name)
*/
namespace: string;
/**
* The scheduled job ID
*/
jobId: string;
hubUrl?: string;
/**
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
*/
fetch?: typeof fetch;
} & CredentialsParams): Promise<ApiJob | null>;
//# sourceMappingURL=run-scheduled-job.d.ts.map