Edits history of script submission #9013 for ' Schedule success handler template (windmill)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    export async function main(
      path: string, // The path of the script or flow
      is_flow: boolean, // Whether the runnable is a flow
      schedule_path: string, // The path of the schedule
      success_result: object, // The result of the latest successful job
      success_started_at: string // The start datetime of the latest successful job
    ) {
      console.log(
        `Schedule ${schedule_path} was successful\n${is_flow ? "Flow" : "Script"}: ${path}`
      );
      console.log(`Started at ${success_started_at}:`, success_result);
      return success_result;
    }

    Submitted by hugo697 370 days ago

  • bun
    export async function main(
      path: string, // The path of the script or flow
      is_flow: boolean, // Whether the runnable is a flow
      schedule_path: string, // The path of the schedule
      success_result: object, // The result of the latest successful job
      success_started_at: string // The start datetime of the latest successful job
    ) {
      console.log(
        `Schedule ${schedule_path} was successful\n${is_flow ? "Flow" : "Script"}: ${path}`
      );
      console.log(`Started at ${success_started_at}:`, success_result);
      return success_result;
    }

    Submitted by hugo697 613 days ago

  • bun
    export async function main(
      path: string, // The path of the script or flow
      is_flow: boolean, // Whether the runnable is a flow
      schedule_path: string, // The path of the schedule
      success_result: object, // The result of the latest successful job
      success_started_at: string // The start datetime of the latest successful job
    ) {
      console.log(
        `Schedule ${schedule_path} was successful\n${is_flow ? "Flow" : "Script"}: ${path}`
      );
      console.log(`Started at ${success_started_at}:`, success_result);
      return error;
    }

    Submitted by hugo697 613 days ago