Configure Workers

JFrog Platform Administration Documentation

Content Type
Administration / Platform
ft:sourceType
Paligo

This section outlines the types of workers you can create in the JFrog Platform.

Workers

Worker

Description

For Code Samples, See ...

Configure Event Driven Workers for Artifactory

Event-driven workers are a powerful tool that allows you to automate actions in response to specific events occurring within your Artifactory environment.

Before Download Worker

Triggers before downloading an artifact.

For example, verify user permissions to ensure they can download the artifact.

Before Download Worker Code Sample

After Download Worker

Triggers when an artifact download process is initiated without waiting for it to complete.

For example, log the download activity for analytics purposes.

After Download Worker Code Sample

Before Create Property Worker

Triggers before creating a property.

For example, verify that users can create properties.

Before Create Property Worker Code Sample

Before Upload Worker

Triggers before uploading an artifact to cloud storage and without waiting for it to complete.

For example, verify user permissions to upload an artifact.

Before Upload Worker Code Sample

After Create Worker

Triggers after successfully creating an artifact in the Artifactory Storage.

For example, add a property value automatically to a newly created artifact.

After Create Worker Code Sample

Before Delete Property Worker

Triggers before deleting a property for an artifact.

For example, verify user permissions to delete a property for an artifact.

Before Delete Property Worker Code Sample

Before Delete Worker

Triggers before deleting an artifact.

For example, terminate deleting an artifact based on certain conditions (tagged as production).

Before Delete Worker Code Sample

After Move Worker

Triggers after moving an artifact successfully from one path to another.

For example, notify the monitoring team after an artifact is moved.

After Move Worker Code Sample

After Build Info Save Worker

Triggers after saving build info.

For example, start a CI/CD pipeline immediately after saving build info.

After Build Info Save Worker Code Sample

Before Copy Worker

Triggers before copying an artifact.

For example, terminate copying an artifact based on certain conditions (tagged as deprecated).

Before Copy Worker Code Sample

Before Create Worker

Triggers before creating an artifact in Artifactory Storage.

For example, terminate creating an artifact based on certain conditions (avoid duplicates).

Before Create Worker Code Sample

Before Move Worker

Triggers before moving an artifact.

For example, terminate moving an artifact based on certain conditions (tagged as production).

Before Move Worker Code Sample

Before Remote Info Worker

Triggers before querying the remote repository for an artifact’s availability.

For example, add an extra header before reaching a remote repository.

Before Remote Info Worker Code Sample

After Remote Download Worker

Triggers after downloading a remote artifact.

For example, update metadata after successfully downloading a remote artifact.

After Remote Download Worker Code Sample

Before Delete Replication Worker

Triggers before replicating a delete action.

For example, terminate replicating delete action based on certain conditions (particular artifactory instance).

Before Delete Replication Worker Code Sample

Before Directory Replication Worker

Triggers before replicating a directory.

For example, terminate replicating a directory based on certain conditions (particular artifactory instance).

Before Directory Replication Worker Code Sample

Before File Replication Worker

Triggers before replicating a file.

For example, terminate replicating a file based on certain conditions (non-production files).

Before File Replication Worker Code Sample

Before Property Replication Worker

Triggers before replicating a property.

For example, terminate replicating a property based on certain conditions (specific properties).

Before Property Replication Worker Code Sample

Before Statistics Replication Worker

Triggers before replicating statistics.

For example, terminate replicating statistics based on certain conditions (download count).

Before Statistics Replication Worker Code Sample

After Copy Worker

Triggers after copying an artifact from one repository to another.

For example, log the copy action for audit purposes.

After Copy Worker Code Sample

After Create Property Worker

Triggers after creating a property.

For example, log the create property action for audit purposes or notify another system.

After Create Property Worker Code Sample

After Delete Property Worker

Triggers after deleting a property.

For example, notify upon deletion of significant properties.

After Delete Property Worker Code Sample

After Delete Worker

Triggers after deleting an artifact.

For example, notify upon deletion of significant artifacts.

After Delete Worker Code Sample

Alt Remote Path Worker

Triggers before accessing a remote path.

For example, ensure the remote path is changed before accessing the old one.

Alt Remote Path Worker Code Sample

Before Remote Download Worker

Triggers before downloading an artifact from a remote repository.

For example, verify the API token before processing the download.

Before Remote Download Worker Code Sample

Alt Response Worker

Deprecated

Alt All Responses Worker

Triggers before downloading an artifact from a remote path for handling responses.

For example, replace the remote response to add custom information.

Alt All Responses Worker Code SampleAlt All Responses Worker Code Sample

Alt Remote Content Worker

Triggers before downloading the remote content.

For example, send alternate content instead of the requested artifact.

Alt Remote Content Worker Code SampleAlt Remote Content Worker Code Sample

After Download Error Worker

Triggers after an error occurs while downloading an artifact.

For example, monitor and log errors encountered during downloads.

After Download Error Worker Code SampleAfter Download Error Worker Code Sample

Before Download Request Worker

Triggers once a download request has passed all filters (such as authentication), indicating readiness to process the request.

For example, verify user permissions again just before processing the download.

Before Download Request Worker Code SampleBefore Download Request Worker Code Sample

Before Build Info Save Worker

Triggers before saving build info.

For example, ensure all required metadata is included before saving build info to maintain data integrity.

Before Build Info Save Worker Code SampleBefore Build Info Save Worker Code Sample

Configure Event Driven Workers for Access

Event-driven workers are a powerful tool that allows you to automate actions in response to specific events occurring within your Access environment.

Before Create Token Worker

Triggers before creating a token.

For example, verify user permissions to ensure they can create a token.

Before Create Token Worker Code Sample

Before Revoke Token Worker

Triggers before revoking a token.

For example, verify whether a token is in active use.

Before Revoke Token Worker Code Sample

Configure Http-Triggered Worker

Executes custom code independent of any events in the JFrog Platform.

Http-Trigged Worker Code Sample

Configure Scheduled Worker

Triggers at predefined times or intervals using cron expressions.

Scheduled Worker Code Sample