forked from sundeck-io/OpsCenter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat warehouse schedules as in the opscenter-configured timezone. (s…
…undeck-io#397) * Treat warehouse schedules as in the opscenter-configured timezone. 1. All warehouse schedule tasks should be marked as running in the configured opscenter timezone. 2. When the task runs, convert the current time and the last task run time to the configured timezone. Then, apply those times against the task schedule and execute the logic per usual. Adds some (contrived) SQL unit tests to validate the logic of this task before we have the admin procedures. Closes sundeck-io#396
- Loading branch information
Showing
7 changed files
with
432 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import streamlit as st | ||
import sthelp | ||
import warehouse_schedule | ||
from modules import add_custom_modules | ||
|
||
|
||
sthelp.chrome("Warehouse Schedule") | ||
|
||
# Load custom OpsCenter python modules | ||
if not add_custom_modules(): | ||
st.warning("Unable to load OpsCenter modules.") | ||
|
||
import warehouse_schedule # noqa E402 | ||
|
||
warehouse_schedule.display() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.