-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from Gabriel2409/feature/on-schedule-job-callback
Feature/on schedule job callback
- Loading branch information
Showing
6 changed files
with
211 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Main purpose of this file is to help test the --on-job-scheduled argument in | ||
`kedro azureml run`. The reason it is needed is to avoid having to patch the | ||
importlib.import_module method to return a dummy module, which for some reason | ||
causes the rest of the run to fail. | ||
""" | ||
|
||
|
||
def existing_function(job): | ||
"""Purpose of this function is to be mocked. It must still exist so that | ||
getattr does not return an error after importing the module with importlib""" | ||
return | ||
|
||
|
||
# Purpose of this variable is to test what happens when we pass a non callable attribute | ||
existing_attr = True |
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