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

Added a script to seed fake jobs for development #39

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

3coins
Copy link
Collaborator

@3coins 3coins commented Sep 23, 2022

Added a python script to load fake job records for development and manual testing of list actions, for example sorting, filtering, pagination etc. Stopping these jobs or trying to open output files will not work for these jobs.

Usage: python seed.py [OPTIONS]

  Inserts random jobs in the scheduler database. Note, that this command will
  drop the tables and re-create.

Options:
  --count INTEGER  No of jobs to create, default is 25
  --db_path PATH   DB file path, default is scheduler db path
  --help           Show this message and exit.

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch 3coins/jupyter-scheduler/seed-data-script

@3coins 3coins marked this pull request as ready for review September 23, 2022 04:17
@3coins 3coins requested a review from dlqqq September 23, 2022 05:02
Copy link
Collaborator

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

Looks great, thank you so much!

@dlqqq dlqqq merged commit 03bde52 into jupyter-server:main Sep 23, 2022
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.

2 participants