For the complete documentation index, see llms.txt. This page is also available as Markdown.

Background Tasks

Background tasks run operations on records on the server — on demand or on a schedule. Use them to clean up records matching a search, re-apply metadata mappings, set or remove tags in bulk, merge duplicate records, or get an email when a scheduled search finds something.

Because tasks run on the server, you do not have to keep the browser open: start a task, close fylr, and check the result later in the task log.

Required Permissions

Available under a user's or group's System Rights:

Access Task Manager: Allows users to open the Tasks Manager and create, edit, run and delete background tasks.

A task operates with regular record permissions. To successfully run a module, the user also needs the corresponding permissions — for example, delete rights on the affected records for the delete_objects module.

Opening the Tasks Manager

Open the Tasks Manager from the header bar of your fylr instance.

the Background Tasks manager in the header bar
The Background Tasks manager, opened from the header bar

The list shows all background tasks with the columns Task ID, Module Name, Description, Created At, Created By, Status, Started At, Finished At and Next Run At.

For each task, the following actions are available:

ACTION
DESCRIPTION

Run Now

Starts the task immediately, regardless of its schedule.

Edit Task

Change title, description, parameters and schedule.

View Task Log

Inspect progress, results and error messages.

Show Affected Records

Oopen the records the task operates on in the search.

Delete Task

Remove the task (the records are not affected).

Creating a Task

There are three ways to create a background task:

  1. In the Tasks Manager, via the create button

  2. From the search: select records and choose "Create background task..." from the context tools — the current search is taken over as the task's search

  3. From a collection: choose "Create background task" in the collection's context menu — the collection is used as the source

Task Details

FIELD
DESCRIPTION

Module

The type of job the task performs (see Modules). The module is chosen at creation and cannot be changed afterwards.

Title

Nme of the task, shown in the Tasks Manager.Can be edited later.

Task Parameters

The available parameters depend on the selected module. Most modules operate on a Search, which defines the target records — configured with the same options as the expert search. Enable Incremental on the search to run only on records changed since the task's last run — useful for a scheduled task, so it processes new and edited records instead of re-processing everything each time.

Scheduling & Notifications

Schedule Options:

OPTION
DESCRIPTION

None

The task is saved but does not run by itself — start it with Run now when needed.

Run now

The task runs once, immediately after saving.

Schedule a manual time

The task runs once at the configured Start At time (empty = immediately).

Use scheduler

The task runs repeatedly according to one or more Schedules.

With Use scheduler, configure recurring runs in the schedule editor. Presets: Every minute, Every 5 / 10 / 15 / 30 minutes, Hourly, Daily, Weekly — or build a Custom Schedule from Day of Month, Weekday, Hour and Timezone. A task can have multiple schedules; the next planned run is shown in the Next Run At column.

Email: add one or more users as recipients to send an email notification when the task is finished.

Modules

Module
Purpose

delete_objects

Delete all records matching a search. Also supports permanently deleting or restoring records from the trash. From fylr 6.35.0, records of one search result that link each other are deleted together: such a link neither blocks the task nor is unlinked.

metadata

Apply a metadata mapping to records matching a search.

search

Run a search and report the number of matching records.

set_unset_tags

Set or remove tags on records matching a search.

consolidate_objects

Merge duplicate records into one target record.

delete_objects

Deletes — or restores — the records matching the configured Search. The Delete Policy controls what happens:

OPTION
DESCRIPTION

Unlink (setnull)

Delete the records and clear the links that point at them in other records. A NOT NULL link in a nested table row takes its row with it when the link is the row's only field; a row with further fields keeps its record from being deleted and the task stops with "Unable to delete objects, there are N objects linking to them". The default.

Delete (remove)

Also delete the subordinate or reverse-linked records of the deleted records, and remove every nested table row whose NOT NULL link points at a deleted record, together with the other fields of the row.

Purge (purge)

Permanently delete the records from the trash — not recoverable.

Restore (undelete)

Restore matched, soft-deleted records from the trash.

A link the policy cannot remove stops the task: a NOT NULL link in a top-level field, a NOT NULL link in a row with further fields under Unlink, and any link whose removal would leave a nested table empty that is set to NOT NULL itself. Records that link each other within the search result do not stop it, they go to the trash together.

metadata

Applies an existing Metadata Mapping to all records matching the Search — for example, to re-apply a mapping of file metadata (EXIF, IPTC, XMP) to records whose files were uploaded before the mapping existed.

Additional parameters:

OPTION
DESCRIPTION

Override Values

Allow the mapping to replace existing field values; otherwise only empty fields are filled.

Merge Values

Merge mapped values with existing ones instead of replacing them.

Set/Unset Tags

Set or remove tags on each record after it was successfully updated.

Set/Unset Tags on Failure

Set or remove tags on each record the mapping could not be applied to (from version 6.35.0).

From version 6.35.0 a record the run did not update can be tagged as well, with Set/Unset Tags on Failure: no mapping for its objecttype, no file in the mapped field, a file that does not load, a recipe that fails or does not support the file, or a recipe that returned nothing to map. The record is saved as a new version whose comment names the reason, and its line in the task log ends with the tags set. A Search that excludes such a tag keeps the record out of the next run — an image an AI service rejects is sent to it once, not on every run; remove the tag to have the record tried again. The log's closing line counts updated and failed records.

From version 6.35.0 the task log also reports what a mapping's recipe had to say about its own run, one WARNING line per remark, naming the recipe. An AI recipe uses this to report a prompt it could not fill in as configured, for example — the mapping still applies, so a run that produced values and a run that produced the values you meant are told apart in the log rather than only in the result. Each updated record's line additionally names the event of the run behind its values, which an administrator can open in /inspect to see the command that was executed.

Runs the configured Search and reports the number of matching records in the task log. Combined with a schedule and an email notification, this works as a recurring report — for example, a weekly check for records that are missing required information.

set_unset_tags

Sets or removes Tags on all records matching the Search — useful for bulk (re-)tagging, for example marking all records of a pool for review.

consolidate_objects

Merges duplicate records: all references to the Source records are replaced by references to the Target record.

This background task can also be started from within a record. For example, go to "Lists" > "Keywords" > edit the keyword you want to replace > open the 3-dot-menu > "Replace by Another Record".

PARAMETER
DESCRIPTION

Source Records

Select the record(s) that should be replaced.

Target Record

Select the record that should replace the other selected record(s).

Dry Run

Only report in the task log what would change, without modifying any records.

Delete Source Records

Delete the source records after re-linking.

Start with a dry run and check the task log before running the consolidation for real.

Last updated