> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Jobs and scheduling

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/lucidworks-search/08-administration/jobs-scheduling/overview

[mintlify link]: https://doc.lucidworks.com/docs/lucidworks-search/08-administration/jobs-scheduling/overview

[old doc.lw link]: https://doc.lucidworks.com/managed-fusion/5.9/mz6jhc

A *job* is a runnable Lucidworks Search object that performs a specific activity, such as datasource jobs and Spark jobs. Examples of the activities include:

* Aggregating signal data
* Training a shallow neural model and projecting each document onto the resulting vector embedding space
* Loading data into a data source

<LwTemplate />

## Job types

Each job type is a type of Lucidworks Search object that you can run or schedule to be run.

|              |                                                                                                                                                                                                                                                                                                                                                                                |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `datasource` | A job to ingest data according to the specified datasource configuration, such as `datasource:movie-db`. Datasources are created using the [Connector Datasources API](/api-reference/datasource-configuration-v2-api/list-all-v2-datasources) or the Lucidworks Search UI.  See [Datasource Jobs](/docs/lucidworks-search/08-administration/jobs-scheduling/datasource-jobs). |
| `spark`      | A Spark job to process data, such as `spark:dailyMetricsRollup-counters`. Spark jobs are created using the [Spark Jobs API](/api-reference/spark-job-controller-api/list-all-job-runs) or the Lucidworks Search UI.  See [Spark Jobs](/docs/lucidworks-search/08-administration/jobs-scheduling/spark-jobs).                                                                   |

## The Jobs manager

The Jobs manager, available in the Lucidworks Search workspace at **Collections** > **Jobs**, provides a simple interface for viewing and scheduling jobs. You can also create tasks and Spark jobs here.

<Note>
  You cannot create, run, or schedule datasource jobs in the Jobs manager. You must create them on the Datasources page, in the Index Workbench, or in the Quickstart. To run a datasource job, use the [scheduler](/docs/lucidworks-search/08-administration/jobs-scheduling/fusion-schedules).
</Note>

## Learn more

<Card title="Managing and Scheduling Jobs" class="note-image" href="https://academy.lucidworks.com/managing-and-scheduling-jobs" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
  The quick learning for **Managing and Scheduling Jobs** focuses on how to create, configure, and schedule jobs using the Fusion UI.
</Card>

<Card title="Jobs and Scheduling" class="note-image" href="https://academy.lucidworks.com/jobs-and-scheduling" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
  The course for **Jobs and Scheduling** focuses on utilizing and managing different job types in Fusion.
</Card>

<AccordionGroup>
  <Accordion title="Create a New Job">
    1. In the Fusion workspace, navigate to **Collections > Jobs**.
    2. Click **Add** and select the job type. The New Job Configuration panel appears. This panel is different for each job type.
    3. Configure the new job as needed.
    4. Click **Save**.
  </Accordion>

  <Accordion title="Schedule a job">
    **How to schedule a job**

    1. In the Lucidworks Search workspace, navigate to **Collections > Scheduler**.
    2. Select the job from the job list.
    3. Click **Run**.
    4. Click **New Schedule**.
    5. Select a job trigger:
       * **After Another Job Completes**\
         Enter the job ID and job result that trigger this one.\\
             <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/jobs-trigger-after.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=e0ef47713970dbfaf8861fa7c34cccd1" alt="After Another Jobs Completes" width="1207" height="705" data-path="assets/images/5.0/jobs-trigger-after.png" />
       * **Cron String**\
         Enter a Quartz cron expression, using UTC time unless `default.timezone` is set to another time zone in `fusion.cors`. See [the Quartz documentation](http://www.quartz-scheduler.org/api/2.3.0/org/quartz/CronExpression.html) for additional details.\\
             <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/jobs-trigger-cron.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=f056a8da2b0d5992936c5443b912a865" alt="Cron String" width="1207" height="710" data-path="assets/images/5.0/jobs-trigger-cron.png" />
       * **Start + Interval**\
         Enter a start date/time, an interval, and the interval units. Include seconds in the start time.\\
             <img src="https://mintcdn.com/lucidworks/zH_ln2rWO5G9pvTA/assets/images/5.0/jobs-trigger-interval.png?fit=max&auto=format&n=zH_ln2rWO5G9pvTA&q=85&s=50478d9a386c6781952d09fdb64e44d1" alt="Start + Interval" width="1206" height="661" data-path="assets/images/5.0/jobs-trigger-interval.png" />
  </Accordion>
</AccordionGroup>
