Workers is a JFrog Platform service that allows you to extend and control your execution flows. It provides a serverless execution environment. You can create workers to enhance the platform's functionality. Workers are triggered automatically by events within the JFrog Platform, giving you the flexibility to address specific use cases. For on-demand tasks, configure Http-triggered workers.
With Workers, you can:
Enhance Platform Capabilities: Perform custom tasks tailored to your needs.
Control Execution Flows: Intercept and modify workflows, such as blocking unauthorized actions or enhancing security.
Integrate Custom Logic: Write code in TypeScript directly in the JFrog Platform UI or via APIs, using the built-in editor for testing.
Only enabled Workers are triggered by platform events, ensuring you have full control over which custom logic is executed.
Subscription Information
From Artifactory 7.94 the Workers service is supported with Enterprise X and Enterprise+ licenses.
Workers in Self-Hosted Environments
To use Workers in Self-Hosted environments, both Artifactory and Workers must be deployed in Kubernetes. For more information, see Installing Workers.
Note
JFrog Workers is the newer, recommended way to easily extend the JFrog Platform (not just Artifactory) in a cloud-native way. While plugins are supported, we strongly suggest using JFrog Workers whenever possible.
Conflicts Between Worker Events and User Plugins in Artifactory Repositories
Using both Artifactory User Plugins and JFrog Artifactory Worker events on the same repository may lead to unexpected behavior. To avoid this, we recommend configuring JFrog Artifactory Worker events on repositories that do not have user plugins enabled.
Related Information
Workers Features | JFrog Workers is a service in the JFrog Platform that provides a serverless execution environment. You can create workers that react to events in the JFrog Platform or are HTTP triggered. Use workers to automate activities in your system to make your system more efficient and free up DevOps bottlenecks. |
Workers Benefits | The Workers service provides functionalities that greatly increase the flexibility of the JFrog Platform. |
Workers Vs Webhooks | Comparing workers and webhooks, we can see that workers offer extraordinary flexibility to allow you to customize and control your workflows. |
Workers Vs User Plugins | Comparing workers and User Plugins, we can see that workers offer extraordinary flexibility to allow you to customize and control your workflows. |
Workers Limitations | The Workers service has a few execution limitations. |
Configure Workers | Create and run workers using these workflow operations, either using the JFrog Platform interface or using APIs. These operations are performed by a Platform Administrator. View the range of out-of-the-box workers that are available with pre-programmed triggers, and view code samples. |
View multiple real-world examples of workers in a GitHub repository, including code you can use directly in your instance. | |
View worker code samples for your ready reference. | |
TypeScript Code for Workers | Use TypeScript code to create the scripts for your workers. TypeScript is JavaScript with syntax for types. TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. |
Workers REST APIs | Use Workers APIs to automate management tasks for your workers. You can create, edit, manage, test, obtain information about, or delete workers with Workers APIs. |
Configure Terraform to Create and Manage Workers | The JFrog Terraform provider enables you to manage JFrog Workers as part of your Infrastructure as Code (IaC) strategy. |