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

Support custom job manager classes in initialize_from_df #667

Open
soxofaan opened this issue Nov 26, 2024 · 0 comments
Open

Support custom job manager classes in initialize_from_df #667

soxofaan opened this issue Nov 26, 2024 · 0 comments

Comments

@soxofaan
Copy link
Member

@mbuchhorn asked for feature to properly support custom job manager classes in initialize_from_df. Which is currently hard-linked to MultiBackendJobManager

# TODO: option to provide custom MultiBackendJobManager subclass with custom normalize?
if self.exists():
if on_exists == "skip":
return self
elif on_exists == "error":
raise FileExistsError(f"Job database {self!r} already exists.")
else:
# TODO handle other on_exists modes: e.g. overwrite, merge, ...
raise ValueError(f"Invalid on_exists={on_exists!r}")
df = MultiBackendJobManager._normalize_df(df)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant