Run docker-compose up
in the root directory of this repository. This will start the airflow webserver and scheduler. You can access the webserver at localhost:8080
. The default username and password are airflow
and airflow
respectively.
- Go to the anyscale console
- Click on your username in the top right corner and select
API Keys
. - Select the 'AI Platform' tab and click 'Create'
- Go to the airflow webserver and click on
Admin
in the top right corner. - Click on
Connections
and thenCreate
. - Fill in the following fields:
- Conn Id:
anyscale
- this needs to match what you use in the DAG - Conn Type:
Anyscale
- Password:
<your API Key>
- Conn Id:
This is a simple DAG that runs a job on anyscale. It uses the SubmitAnyscaleJob
operator to run a job on anyscale.
- Go to the airflow webserver and click on
DAGs
in the top left corner. - Click on the
trigger
button next to theanyscale_job
DAG. - Click on the
Graph View
tab to see the progress of the DAG. - Click on the
Logs
tab to see the logs of the DAG. - Navigate to the Anyscale job page to see the job running.
To develop an Airflow Dag on Anyscale Workspaces, you need to install the following:
apache-airflow
astro-provider-anyscale
Currently, the astro-provider-anyscale
has the Anyscale CLI pinned to anyscale-0.24.44
which is older than what is currently available. Installing astro-provider-anyscale
will uninstall the newer version.