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: update schedule disabler configs #1414

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rchandnaeg
Copy link
Contributor

  • adds kwarg options to the disable schedule task
  • corrects behavior of skip_if_no_impression_with_export and skip_if_no_impression_but_non_select to match the semantic meaning of these options. "Skip disabling the datadoc if it has no impression but has an exporter", and "Skip disabling the datadoc if it has no impression but there are non-select queries"
  • support for entering null values to kwargs, and improves rendering of non-integer default values for tasks.

Previously, creating this task looked like this:
Screenshot 2024-02-22 at 2 11 23 PM

View of creating the task now with kwarg options
Screenshot 2024-02-21 at 12 45 52 PM

Comment on lines +120 to +125
if disable_config.skip_if_no_impression_with_export:
task_have_export = len(task_dict["kwargs"].get("exports", [])) > 0
if task_have_export:
return False

if not disable_config.skip_if_no_impression_but_non_select:
if disable_config.skip_if_no_impression_but_non_select:
Copy link
Collaborator

Choose a reason for hiding this comment

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

@czgu could you help to look at this? I'm a bit confused about the actual meaning of these two configs. should it disable or not when they are true.
skip_if_no_impression_with_export
skip_if_no_impression_but_non_select

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.

None yet

2 participants