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

Expand test suite to test all possible kwargs to Schedule #34

Open
joshuadavidthomas opened this issue May 8, 2024 · 0 comments
Open
Labels
👶 good first issue Good for newcomers 🧪 tests Issues or tasks related to writing or improving tests

Comments

@joshuadavidthomas
Copy link
Member

Re: #30, this would have been caught had there been tests that exercise all the different options a Schedule can take.

Doc references:

func (str) – the function to schedule. Dotted strings only.

args – arguments for the scheduled function.

name (str) – An optional name for your schedule.

hook (str) – optional result hook function. Dotted strings only.

schedule_type (str) – (O)nce, M(I)nutes, (H)ourly, (D)aily, (W)eekly, (M)onthly, (Q)uarterly, (Y)early or (C)ron Schedule.TYPE

minutes (int) – Number of minutes for the Minutes type.

cron (str) – Cron expression for the Cron type.

repeats (int) – Number of times to repeat schedule. -1=Always, 0=Never, n =n.

next_run (datetime) – Next or first scheduled execution datetime.

cluster (str) – optional cluster name. Task will be executed only on a cluster with a matching name.

intended_date_kwarg (str) – optional identifier to pass intended schedule date.

q_options (dict) – options passed to async_task for this schedule

kwargs – optional keyword arguments for the scheduled function.

@joshuadavidthomas joshuadavidthomas added 🧪 tests Issues or tasks related to writing or improving tests 👶 good first issue Good for newcomers labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👶 good first issue Good for newcomers 🧪 tests Issues or tasks related to writing or improving tests
Projects
None yet
Development

No branches or pull requests

1 participant