Schedule a data source

Data Manager is included in all Service Collection Premium and Enterprise plans.

This page explains how to schedule a data source to bring data into Data Manager using third‑party scheduling apps and the Adapters client.

Examples use:

  • cron for macOS and Linux

  • Windows Task Scheduler for Windows/DOS

Any scheduling app can be used, as long as it correctly runs the Adapters client command.

ガイドライン:

  • Create one scheduled task per data source you want to fetch.

  • If files must be copied into place before being consumed, add separate scheduled tasks for file movement.

  • Leave enough time between scheduled tasks (for example, 1 hour) to avoid overlap.

Schedule a data source using cron (macOS and Linux)

前提条件

  • Data sources must be created in Data Manager and visible under the respective object class.

  • The Adapters client must be installed.

Steps (macOS example):

  1. Open Terminal.

  2. Navigate to the Adapters client directory, for example:

    cd ~/jsm-data-manager-clients/Assets.Adapters.Client.app
  3. Create a script to run the Adapters client, for example:

    nano run-dm-job.sh
  4. Add a script similar to:

    #!/bin/bash ./dm-adapters --workspace-id <workspaceId> --token <your-token> --run "<myJobName>"
    • Use double quotes around job names that contain spaces.

  5. Save the script and make it executable:

    chmod +x run-dm-job.sh
  6. Edit the crontab:

    crontab -e
  7. Add a cron expression and script path:

    0 18 * * 2,4 /Users/<username>/run-dm-job.sh

    This example runs the script every Tuesday and Thursday at 6 pm.

  8. Save and exit. List existing cron jobs with:

    crontab -l

Schedule a data source using Windows Task Scheduler

前提条件

  • Data sources must be created and visible under the respective object class.

  • The Adapters client must be installed.

手順:

  1. Open Windows Task Scheduler.

  2. Create a subfolder, for example Data Manager.

  3. Select Create Task.

  4. On the General tab:

    • Enter a meaningful task name (for example, Run Data Manager job for Assets).

    • Select Run whether user is logged on or not.

    • Choose a service account for consistent, non‑interactive execution (via Change User or Group).

  5. On the Triggers tab, select New… and configure the schedule (daily, weekly, monthly, and time).

  6. On the Actions tab, select New…:

    • Action: Start a program

    • Program/script: dm-adapters.exe

    • Add arguments (example):

      --workspace-id e44regc98-8d2r-3af7-011t-209p44716366 --token <your-token> --run "<myJobName>"
      • Use double quotes for job names with spaces.

    • Start in: directory where dm-adapters.exe resides, for example:

      c:\users\public\assets_data_manager\data_manager_clients\win-x64\assets-adapters-client\
  7. On the Settings tab:

    • Change Stop the task if it runs longer than from 3 days to something more appropriate (for example, 1 hour).

  8. Save the task. If prompted, enter the service account password.

You can test the scheduled task by selecting the task and choosing Run.

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。