Skip to main content

Manage files in My Workspace

Keep your DAG code, scripts, configuration files, and sample data in one place, right in the Airflow UI of your Orchestration service. My Workspace shows them as a folder tree under Root and can connect a folder to a Git repository.

Prerequisites​

Open My Workspace​

  1. Sign in to the Airflow UI of your Orchestration service.

  2. In the left menu, select Workflow Engine → My Workspace.

    Workflow Engine menu of the Airflow UI with the Jobs, Notifications, My Workspace, Logs, Spark UI, and Spark History items

My Workspace opens at Root. Root holds the folders of the service, for example dags, plugins, requirements, remote-logs, dag_backups, spark-events, and openmetadata.

My Workspace at Root with the toolbar, the Directories tree, and the FILES tab listing the service folders

My Workspace layout​

AreaDescription
ToolbarThe add icon (+) opens a menu with New File, New Directory, and Upload File. Next to it, the refresh and home icons, and the help icon (?) on the right.
BreadcrumbThe path of the folder that is open, starting at Root. The Copy path icon on the right copies the path.
SearchThe Search files and directories… box finds files and folders.
DirectoriesOn the left. The folder tree of Root. Each folder has a Refresh directory icon.
FILESThe main tab. The files and folders of the folder that is open, with the number of items in each folder and a delete icon on each row.

Create and upload files​

New files and folders go into the folder that is selected in Directories or FILES.

Create a file​

  1. In Directories or FILES, select the folder where you want the file.

  2. In the toolbar, select + → New File.

    Add menu of My Workspace with the New File, New Directory, and Upload File options

  3. Enter a name for the file, and confirm.

tip

To add a DAG to the Orchestration service, create a .py file in the dags folder. If your DAGs come from a Git repository, add the file to the repository instead.

Create a folder​

  1. In Directories or FILES, select the folder where you want the new folder.

  2. In the toolbar, select + → New Directory.

  3. In the Create New Directory dialog, enter the Directory Name, then select CREATE.

    Create New Directory dialog with the Directory Name field and the CANCEL and CREATE buttons

Upload a file​

  1. In Directories or FILES, select the folder where you want the file.
  2. In the toolbar, select + → Upload File.
  3. Choose the file on your computer.

Check the selected folder before you upload.

Manage files and folders​

Right-click a file or folder in FILES to open its menu. The menu of a folder has Rename, Copy, Move, Delete, Download, and Initialize Git Repository.

Menu of a folder in the FILES tab with the Rename, Copy, Move, Delete, Download, and Initialize Git Repository options

Rename, copy, move, or download​

ActionWhat to do
RenameEnter the new name, then confirm.
CopyEnter the path of the target folder, then confirm. Leave the path empty to copy to Root.
MoveEnter the path of the target folder, then confirm. Leave the path empty to move to Root.
DownloadThe file or folder downloads to your computer.

Delete a file or folder​

  1. In FILES, select the delete icon at the end of the row. You can also right-click the row, then select Delete.
  2. To delete a folder with everything in it, select Force delete (recursively delete all contents) in the Delete Directory dialog.
  3. Select DELETE. To cancel, select CANCEL.

Delete Directory dialog asking to confirm the deletion, with the Force delete check box and the CANCEL and DELETE buttons

danger

Deleted files and folders cannot be recovered.

Connect a folder to a Git repository​

Connect a folder to a Git repository to manage versions and sync source code. This applies only to folders, not to files.

  1. In FILES, right-click the folder, then select Initialize Git Repository.
  2. In Repository URL, enter the URL of the Git repository. This field is required.
  3. In Authentication Type, select how My Workspace authenticates with the repository. See the table below.
  4. For SSH Key or Username/Password, fill in the fields of the type.
  5. Select TEST CONNECTION.
  6. Select INITIALIZE. It becomes available when the connection test succeeds.

Initialize Git Repository dialog with the Repository URL field, the Authentication Type list set to None, and the TEST CONNECTION, CANCEL, and INITIALIZE buttons

Authentication TypeDescription
NoneDefault. For a public repository. You enter no credentials.
SSH KeyAuthenticates with an SSH key. Enter the key in the SSH Key field, which is required. The key is stored securely in the database.
Username/PasswordFor a private repository, or when Git requires authentication. Enter the Username and Password, which are both required. For GitHub, GitLab, and similar services, you can enter a personal access token in Password.

Sync a folder with Git​

The menu of a folder connected to Git has these items:

  • Git Pull: pulls the latest changes of the repository into the folder.
  • Git Repository Settings: shows the information and the sync settings of the repository.

Next steps​