# Jobs

Jobs execute scheduled operations automatically using custom JavaScript code, reducing repetitive work and maintaining data consistency. Jobs are managed in the METAMETA/JOB app.

## Creating jobs[​](#creating-jobs "Direct link to Creating jobs")

All jobs are written in custom JavaScript. Each job is a record in METAMETA/JOB where you define the schedule and the script to run.

## Common use cases[​](#common-use-cases "Direct link to Common use cases")

Jobs automate various business processes and data management tasks:

### Task management automation[​](#task-management-automation "Direct link to Task management automation")

* **Weekly priority reports** - every Monday, identify 5 top-priority tasks and email the list to relevant users
* **Priority escalation** - daily at 6 AM, automatically escalate unfinished tasks due the next day from normal to high priority
* **Workload monitoring** - hourly checks for users with over 10 tasks due in the next 5 days, alerting managers about potential workload issues

### Vacation and leave management[​](#vacation-and-leave-management "Direct link to Vacation and leave management")

* **Task reassignment** - daily scans for recently approved vacation requests, identify tasks assigned to users on leave, and warn workspace administrators via email

### Issue and ticket automation[​](#issue-and-ticket-automation "Direct link to Issue and ticket automation")

* **Auto-assignment** - hourly review of specific app-related issues and automatically assign unallocated issues based on preset algorithms

### Data maintenance[​](#data-maintenance "Direct link to Data maintenance")

* **Record updates** - scheduled updates to keep records current and consistent
* **Status synchronization** - automatic status changes based on time or other criteria
* **Notification management** - automated alerts and reminders for important events

## Job configuration[​](#job-configuration "Direct link to Job configuration")

### Scheduling options[​](#scheduling-options "Direct link to Scheduling options")

* **Cron-scheduled** - run jobs at specific times (hourly, daily, weekly, monthly) using cron expressions
* **Run once** - execute a job manually on demand from the admin interface

### Execution parameters[​](#execution-parameters "Direct link to Execution parameters")

* **JavaScript code** - custom logic for data processing and decision making
* **Target data** - specify which records or data sources to process
* **Notification settings** - configure who receives alerts about job results
* **Error handling** - define how to handle job failures or exceptions

## Benefits[​](#benefits "Direct link to Benefits")

* **Time savings** - eliminate manual repetitive tasks
* **Consistency** - ensure processes are executed reliably and uniformly
* **Proactive management** - identify and address issues before they become problems

## Related[​](#related "Direct link to Related")

* [Background daemons](/developer-guide/how-to/advanced/background-daemons.md) - developer guide for writing the JavaScript code that powers jobs
