async runDataSource()

in packages/costa/src/index.ts [180:186]


  async runDataSource(script: PipcookScript): Promise<DefaultDataSet> {
    // log all the requirements are ready to tell the debugger it's going to run.
    debug(`start loading the script(${script.name})`);
    const fn = await this.importScript<DefaultDataSourceEntry>(script);
    debug(`loaded the script(${script.name}), start it.`);
    return await fn(script.query, { ...this.context, taskType: TaskType.TRAIN });
  }