To find, edit, and create new workers you must be logged in as an admin user. Select the Administration tab. There you’ll see a new button called “Workers” as shown below:
Figure 1 - Access the worker service by selecting Administration tab > Workers.
Once in the Workers section, you will see a set of cards representing 3 types of Workers:
- Event Driven Worker - triggered when the event you have selected happens in the system.
- Scheduled Worker - triggered at predefined times or intervals, relying on a Cron expression to define its schedule.
- HTTP-Triggered Worker - triggered manually using REST API or JFrog CLI.
The workflow to use Workers may remind you of the Webhook service, but there are a few differences between Events and Workers:
- A worker is a script hosted on the JFrog platform
- The script is provided with support tools to make workers easy to use
- The service that launches an action that triggers a worker will wait for the worker's completion, so a worker can perform activities on the platform before the action actually occurs and is thus able to impact the result of the action.
The worker flow is summarized in the following figure:
Figure 2 - Workflow of a worker service