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

# Scheduled Jobs

> You can view, start, pause, and stop scheduled jobs. You can perform job management in project-based or admin view and monitor job statuses.

<Info>
  This is the page where you can manage scheduled jobs created on the Apinizer platform. You can start, pause, resume, or stop jobs from this page.
</Info>

## Overview

The Scheduled Jobs page works in two different views:

<CardGroup cols={2}>
  <Card title="Project View" icon="folder">
    Displays and manages scheduled jobs belonging to your active project
  </Card>

  <Card title="Admin View" icon="user-shield">
    Displays and manages scheduled jobs belonging to all projects (only for admin users)
  </Card>
</CardGroup>

## Page Components

### Project Selector (Admin Only)

In admin view, you can select the project you want from the dropdown menu at the top.

<Info>
  The **Admin Jobs** option shows all system-level jobs. When a specific project is selected, only jobs belonging to that project are listed.
</Info>

### Jobs Table

Scheduled jobs are listed in the table with the following information:

| Column         | Description                                 |
| -------------- | ------------------------------------------- |
| **Name**       | Unique name of the job                      |
| **Group**      | Category/class the job belongs to           |
| **Time**       | Date and time the job is scheduled          |
| **Last Fired** | Date and time the job last ran              |
| **Next Fire**  | Date and time the job will run next         |
| **Action**     | Operations that can be performed on the job |
| **Status**     | Current status of the job                   |

## Job Types

Different types of scheduled jobs exist on the Apinizer platform:

<AccordionGroup>
  <Accordion title="Anomaly Detector Job" icon="chart-line">
    Scheduled job that performs anomaly detection in the system. Detects unusual behaviors and performance issues.
  </Accordion>

  <Accordion title="Uptime Monitor Job" icon="heartbeat">
    Scheduled job that monitors the operational status of services and APIs. Performs health checks at certain intervals.
  </Accordion>

  <Accordion title="Alert Job" icon="bell">
    Scheduled job that manages system alerts and notifications. Sends alerts when defined conditions occur.
  </Accordion>

  <Accordion title="Report Configuration Job" icon="file-chart-line">
    Scheduled job that enables automatic creation and sending of reports.
  </Accordion>

  <Accordion title="Task Flow Manager" icon="diagram-project">
    Scheduled job that manages Integration Flow and Task flows. Triggers flows at certain intervals.
  </Accordion>
</AccordionGroup>

## Job Actions

Four different actions can be performed for each job:

<Steps>
  <Step title="Start Now">
    Starts the job immediately without waiting for scheduling.

    <Warning>
      This button is only active when the job is in **SCHEDULED** or **PAUSED** status. It is disabled when in **RUNNING** status.
    </Warning>
  </Step>

  <Step title="Pause">
    Pauses a running or scheduled job. The job will not perform its next scheduled run.

    <Info>
      This button is only active when the job is in **SCHEDULED** status.
    </Info>
  </Step>

  <Step title="Resume">
    Reactivates a paused job. The job continues to run according to its schedule.

    <Info>
      This button is only active when the job is in **PAUSED** status.
    </Info>
  </Step>

  <Step title="Stop">
    Stops a running job. The job is terminated immediately.

    <Warning>
      This button is only active when the job is in **RUNNING** status.
    </Warning>
  </Step>
</Steps>

## Job Statuses

Jobs can be in different statuses:

<Tabs>
  <Tab title="SCHEDULED">
    Job is scheduled and waiting for its next run time. For jobs in this status:

    * ✅ **Start Now** active
    * ✅ **Pause** active
    * ❌ **Resume** inactive
    * ❌ **Stop** inactive
  </Tab>

  <Tab title="RUNNING">
    Job is currently running. For jobs in this status:

    * ❌ **Start Now** inactive
    * ❌ **Pause** inactive
    * ❌ **Resume** inactive
    * ✅ **Stop** active
  </Tab>

  <Tab title="PAUSED">
    Job is paused. For jobs in this status:

    * ❌ **Start Now** inactive
    * ❌ **Pause** inactive
    * ✅ **Resume** active
    * ❌ **Stop** inactive
  </Tab>
</Tabs>

## Usage Scenarios

<CardGroup cols={2}>
  <Card title="Test Execution" icon="flask">
    You can test whether a job works correctly by using the **Start Now** button to run it immediately without waiting for scheduling.
  </Card>

  <Card title="Maintenance Window" icon="wrench">
    You can temporarily stop jobs during system maintenance with the **Pause** button and reactivate them after maintenance with **Resume**.
  </Card>

  <Card title="Emergency Stop" icon="circle-stop">
    You can immediately terminate a running job with the **Stop** button in case of an unexpected issue.
  </Card>

  <Card title="Project-Based Monitoring" icon="chart-mixed">
    Admin users can monitor and manage each project's jobs separately using the project selector.
  </Card>
</CardGroup>

## Best Practices

<Tip>
  **Job Status Tracking:** Track whether jobs run on time by regularly checking the **Last Fired** and **Next Fire** columns of jobs.
</Tip>

<Tip>
  **Admin View:** When performing system-wide job management, first check system-level jobs using the **Admin Jobs** option, then proceed to project-based reviews.
</Tip>

<Warning>
  **Stopping Running Jobs:** Before stopping a job in **RUNNING** status, evaluate the consequences of interrupting the job's operation mid-way.
</Warning>

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="Why are jobs not visible?">
    * Check the project selector (in admin view)
    * There may be no scheduled jobs in your active project
    * Try the page refresh button
  </Accordion>

  <Accordion title="Why is Start Now button inactive?">
    The job is probably in **RUNNING** status. A job can only run once at a time. Wait for the job to finish or use the **Stop** button.
  </Accordion>

  <Accordion title="How do I activate a paused job?">
    Use the **Resume** button. The job will start running again according to its schedule.
  </Accordion>

  <Accordion title="What is Admin Jobs?">
    Jobs that run at system level, not belonging to a specific project. For example: log cleanup, metric collection, etc.
  </Accordion>
</AccordionGroup>

## Related Pages

<CardGroup cols={3}>
  <Card title="Integration Flow" icon="diagram-project" href="/en/integrations/api-integrator-task-flow-builder/task-flow-design">
    Creating scheduled jobs within flows
  </Card>

  <Card title="Alert Configuration" icon="bell" href="/en/monitor/alarm">
    Configuring alert jobs
  </Card>

  <Card title="Monitoring" icon="chart-line" href="/en/integrations/api-integrator-task-flow-builder/taskflow-monitor">
    Viewing job execution logs
  </Card>
</CardGroup>
