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

fix scheduler to take input from setting page #1032

Merged
merged 3 commits into from
Feb 21, 2023

Conversation

bingzhang
Copy link
Collaborator

@bingzhang bingzhang commented Jan 24, 2023

Description

Please provide a summary of the pull request and the issue it fixes. Please add necessary details, context, dependencies, explanation of when review is needed (see next section), etc.

Fixes #(add issue number here and remove parentheses)

Review Time Estimate

Please give your idea of how soon this pull request needs to be reviewed by selecting one of the options below. This can be based on the criticality of the issue at hand and/or other relevant factors.

  • Immediately
  • Within a week
  • When possible

Type of changes

Please select a relevant option:

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Other (any another change that does not fall in one of the above categories.)

Checklist:

Please select all applicable options:

  • I have signed the Rokwire Contributor License Agreement (CLA). (Any contributor who is not an employee of the University of Illinois whose official duties include contributing to the Rokwire software, or who is not paid by the Rokwire project, needs to sign the CLA before their contribution can be accepted.)
  • I have updated the CHANGELOG.
  • I have read the Contributor Guidelines.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • My change requires updating the documentation.
  • I have made necessary changes to the documentation.
  • I have added tests related to my changes.
  • My changes generate no new warnings.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

@bingzhang bingzhang self-assigned this Jan 24, 2023
@bingzhang bingzhang linked an issue Jan 24, 2023 that may be closed by this pull request
@sandeep-ps
Copy link
Collaborator

Hi, @bingzhang, Thanks. I have feedback on a few items:

  1. Please update the pull request description to fill in the checklist entries. This information will be helpful for all reviewers (current or new). Thanks.
  2. Please update the settings page text about download scheduling to include details about the timezone. Here is a suggestion: Events from these calendars will be crawled, parsed, and published daily at the scheduled time displayed below. The default scheduled time is 11:00 PM (Central Time). You can set a different time below.
  3. When I tried changing the time using the develop branch, it's working locally. With the change in this PR, a PytzUsageWarning warning about the timezone goes away. So, it's definitely an improvement, but to test if this would fix the actual problem, this will need to be deployed to the DEV instance.
  4. After I set the time using the Settings page and restarting Events Manager (consider the example of container restarting due to some reason), Events Manager picks up the value in the environment and not the user input that's in the database. I think the core issue is that the Events Manager needs to prefer the user setting over the environment variable setting. Please fix this. Thanks.

Copy link
Collaborator

@sandeep-ps sandeep-ps left a comment

Choose a reason for hiding this comment

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

Provided feedback in a separate comment.

@bingzhang
Copy link
Collaborator Author

Hi, @bingzhang, Thanks. I have feedback on a few items:

  1. Please update the pull request description to fill in the checklist entries. This information will be helpful for all reviewers (current or new). Thanks.
  2. Please update the settings page text about download scheduling to include details about the timezone. Here is a suggestion: Events from these calendars will be crawled, parsed, and published daily at the scheduled time displayed below. The default scheduled time is 11:00 PM (Central Time). You can set a different time below.
  3. When I tried changing the time using the develop branch, it's working locally. With the change in this PR, a PytzUsageWarning warning about the timezone goes away. So, it's definitely an improvement, but to test if this would fix the actual problem, this will need to be deployed to the DEV instance.
  4. After I set the time using the Settings page and restarting Events Manager (consider the example of container restarting due to some reason), Events Manager picks up the value in the environment and not the user input that's in the database. I think the core issue is that the Events Manager needs to prefer the user setting over the environment variable setting. Please fix this. Thanks.

@sandeep-ps I updated the pr. I created a new issue related to your comments. #1035

@bingzhang bingzhang requested a review from sandeep-ps January 30, 2023 21:15
sandeep-ps
sandeep-ps previously approved these changes Feb 1, 2023
Copy link
Collaborator

@sandeep-ps sandeep-ps left a comment

Choose a reason for hiding this comment

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

Approving for further testing after deployment. Thanks.

@sandeep-ps
Copy link
Collaborator

Bing, if there is no remaining feedback, I think you can merge this. Thanks.

minump
minump previously approved these changes Feb 14, 2023
Copy link
Collaborator

@minump minump left a comment

Choose a reason for hiding this comment

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

LGTM

@bingzhang bingzhang dismissed stale reviews from minump and sandeep-ps via 9456fdd February 21, 2023 15:18
Copy link
Collaborator

@jianyuan-zhan jianyuan-zhan left a comment

Choose a reason for hiding this comment

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

The conflict fix looks good.

@bingzhang bingzhang merged commit c74205e into develop Feb 21, 2023
@bingzhang bingzhang deleted the 1030-bug-scheduler-cannot-take-the-input-time branch February 21, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Scheduler cannot take the input time.
4 participants