Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend task context logging support for remote logging using AWS S3 #32950

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

pankajkoti
Copy link
Member

@pankajkoti pankajkoti commented Jul 30, 2023

With the addition of task context logging feature in PR #32646,
this PR extends the feature to AWS S3 when is it set as remote
logging store. Here, backward compatibility is ensured for older
versions of Airflow that do not have the feature included in
Airflow Core.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@pankajkoti pankajkoti changed the title Add task context logging support for remote AWS S3 logging Add task context logging support for remote logging using AWS S3 Jul 30, 2023
@pankajkoti pankajkoti changed the title Add task context logging support for remote logging using AWS S3 Extend task context logging support for remote logging using AWS S3 Jul 30, 2023
@pankajkoti
Copy link
Member Author

pankajkoti commented Jul 31, 2023

Backward compatibility test by putting this change on top of main branch locally:
Screenshot 2023-07-31 at 10 56 47 PM

Feature testing by putting these changes on the base PR branch which adds the feature in Airflow Core:
Without this change for AWS S3 remote logging when tasks fail in scheduler:
Screenshot 2023-07-31 at 10 56 58 PM

With this change for AWS S3 remote logging when tasks fail in scheduler:
Screenshot 2023-07-31 at 10 59 03 PM

uranusjr
uranusjr previously approved these changes Aug 1, 2023
@uranusjr uranusjr dismissed their stale review August 1, 2023 01:26

Static checks indicate there’s an implementation error somewhere.

@pankajkoti
Copy link
Member Author

pankajkoti commented Aug 1, 2023

@uranusjr yes, since the base PR #32646 is not merged to main yet, the keyword argument identifier is not available yet for the set_context method and it is complaining for that. Once the base PR is merged, this check will pass.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Sep 16, 2023
@github-actions github-actions bot closed this Sep 21, 2023
@pankajkoti pankajkoti reopened this Nov 14, 2023
@github-actions github-actions bot removed the stale Stale PRs per the .github/workflows/stale.yml policy file label Nov 16, 2023
With the addition of taxt context logging feature in PR apache#32646,
this PR extends the feature to AWS S3 when is it set as remote
logging store. Here, backward compatibility is ensured for older
versions of Airflow that do not have the feature included in
Airflow Core.
@pankajkoti pankajkoti marked this pull request as ready for review November 17, 2023 12:20
@pankajkoti
Copy link
Member Author

Latest successful testing with S3 remote logging

Screenshot 2023-11-17 at 5 54 05 PM

@pankajkoti pankajkoti merged commit 3e6676b into apache:main Nov 17, 2023
46 checks passed
@pankajkoti pankajkoti deleted the task-context-log-s3-logging branch November 17, 2023 14:47
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Nov 20, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logging area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants