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

Storing extra columns than just job id, next_run_time, and job_state. #508

Open
alegend4u opened this issue Apr 22, 2021 · 2 comments
Open

Comments

@alegend4u
Copy link

Is your feature request related to a problem? Please describe.
I want to implement my own CustomJobStore that subclasses SQLAlchemyJobStore which will use extended version of table apscheduler_jobs (some extra columns I would like to store.) But for that I have to also come up with my own CustomJob that subclasses Job. And for that I would have to implement my own scheduler as well that uses CustomJob

Describe the solution you'd like
Maybe there should be a BaseJob abstract class which can be registered with the existing scheduler to make it use CustomJob instead of Job.

Additional context
The reason I have to extend table is that I want to store some extra columns specific to business.

@agronholm
Copy link
Owner

APScheduler 4.0 will support metadata for schedules and jobs (which are a separate concept there). Can you elaborate on your requirements? I'm inclined to support custom data in schedules (and jobs) though not as top level items.

@w-Bro
Copy link

w-Bro commented Jan 19, 2022

i have a same situation now, and i am trying to rewrite SQLAlchemyJobStore. It seems that this feature will be supported on v4.0, any plan for publish v4.0 recently?

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

3 participants