Skip to content

Commit c62eb02

Browse files
yangawslaurenyu
authored andcommitted
Revert appending Airflow retry id to default job name (#568)
1 parent ed40f13 commit c62eb02

File tree

3 files changed

+104
-120
lines changed

3 files changed

+104
-120
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
CHANGELOG
33
=========
44

5-
1.16.4.dev
6-
==========
5+
1.17.0
6+
======
77

8+
* bug-fix: Revert appending Airflow retry id to default job name
89
* bug-fix: Session: don't allow get_execution_role() to return an ARN that's not a role but has "role" in the name
910
* bug-fix: Remove ``__all__`` from ``__init__.py`` files
1011

src/sagemaker/utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
import six
2828

2929

30-
AIRFLOW_RETRY_MACRO = "{{ task_instance.try_number }}"
31-
AIRFLOW_TIME_MACRO = "{{ execution_date.strftime('%Y-%m-%d-%H-%M-%S') }}" + "-{}".format(AIRFLOW_RETRY_MACRO)
32-
AIRFLOW_TIME_MACRO_LEN = 22
33-
AIRFLOW_TIME_MACRO_SHORT = "{{ execution_date.strftime('%y%m%d-%H%M') }}" + "-{}".format(AIRFLOW_RETRY_MACRO)
34-
AIRFLOW_TIME_MACRO_SHORT_LEN = 14
30+
AIRFLOW_TIME_MACRO = "{{ execution_date.strftime('%Y-%m-%d-%H-%M-%S') }}"
31+
AIRFLOW_TIME_MACRO_LEN = 19
32+
AIRFLOW_TIME_MACRO_SHORT = "{{ execution_date.strftime('%y%m%d-%H%M') }}"
33+
AIRFLOW_TIME_MACRO_SHORT_LEN = 11
3534

3635

3736
# Use the base name of the image as the job name if the user doesn't give us one

0 commit comments

Comments
 (0)