Skip to content

Commit 90a0221

Browse files
authored
Rename clear file system dag (GoogleCloudPlatform#7155)
## Description Fixes b/202996058 This DAG is only for usage in Composer v1 and we will not have a corresponding one in Composer v2 - I did some renaming to ensure [if you add it to your environment it's very visible it's for Composer v1](https://screenshot.googleplex.com/5k5zh7j4SXVGgn5) Note: It's a good idea to open an issue first for discussion. ## Checklist - [x] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md) - [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file) - [x] **Tests** pass: `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] **Lint** pass: `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones) - [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones) - [x] Please **merge** this PR for me once it is approved. - [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/.github/CODEOWNERS) with the codeowners for this sample
1 parent a9be186 commit 90a0221

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer/workflows/clear_file_system_caches_dag.py renamed to composer/workflows/clear_file_system_caches_dag_composer_v1.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
15-
"""A dag that prevents memory leaks on scheduler and workers."""
1614
from datetime import timedelta
1715
import os
1816

1917
import airflow
2018
from airflow import DAG
2119
from airflow.operators.bash_operator import BashOperator
2220

21+
22+
"""A dag that prevents memory leaks on scheduler and workers."""
23+
"""This DAG is unsupported for usage in Composer v2"""
24+
2325
dag = DAG(
24-
'clear_file_system_caches_dag',
25-
description='clear file system caches on scheduler and workers',
26+
'clear_file_system_caches_dag_composer_v1',
27+
description='clear file system caches on scheduler and workers in Composer v1',
2628
schedule_interval='*/30 * * * *',
2729
dagrun_timeout=timedelta(minutes=20),
2830
start_date=airflow.utils.dates.days_ago(1),

0 commit comments

Comments
 (0)