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

Add event rule to batch starter lambda #236

Conversation

tech3371
Copy link
Contributor

Change Summary

  • Added event rule to batch starter lambda
  • Found some issue when testing the lambda. Included fix for that.

@tech3371 tech3371 self-assigned this Jan 26, 2024
Comment on lines 17 to 18
logger.setLevel(logging.INFO)
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these set separately? I think we can get rid of the basicConfig and sys import and put this logger to debug.

Suggested change
logger.setLevel(logging.INFO)
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger.setLevel(logging.DEBUG)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how we had in indexer and it's been able to log. I recall batch job logging troublesome. I am testing it on AWS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. That seems to work. It just produced long logs that I haven't seen before. I see INFO logs I usually see.
Screen Shot 2024-01-29 at 9 29 16 AM

Copy link
Contributor

@laspsandoval laspsandoval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work.

@tech3371 tech3371 force-pushed the add_event_to_batch_starter branch from 10b9493 to 7a641da Compare January 29, 2024 16:34
@tech3371 tech3371 merged commit 6432f1b into IMAP-Science-Operations-Center:dev Jan 29, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants