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

Clustered Quartz #9

Open
prepor opened this issue Nov 6, 2014 · 3 comments
Open

Clustered Quartz #9

prepor opened this issue Nov 6, 2014 · 3 comments

Comments

@prepor
Copy link

prepor commented Nov 6, 2014

Hi!

Are you going to support durable and clustered Quartz JobStores for scheduling?

@tobias
Copy link
Member

tobias commented Nov 10, 2014

We would like to, but don't have a concrete plan at the moment. The big hurdle is being able to serialize the job itself - that's difficult to do with block-based jobs in TorqueBox or the functions that may capture lexical scope in Immutant. One approach may be to place restrictions on jobs that will be stored, but we haven't looked at it too deeply. If we did support it, we would probably also provide an Infinispan-based JobStore for you to use in addition to existing JobStores.

@prepor
Copy link
Author

prepor commented Nov 10, 2014

I think it can be reasonable to make less "sexy" but more simple API without blocks and functions, only with simply serializable things like class name + method name + args and var name + args.

Anyway, there are some ways to serialize clojure's even anonymous fn with context. See https://github.com/nathanmarz/cascalog/blob/develop/cascalog-core/src/clj/cascalog/logic/fn.clj#L51

It also will be cool to have explicit way to start services like scheduling and pass to it context for all jobs. This makes possible Reloaded Workflow (https://github.com/stuartsierra/component) :)

@tobias
Copy link
Member

tobias commented Nov 14, 2014

Yes, adjustments to the API (like allowing a class that provides a run() method in addition to a block in TorqueBox) are what we've talked about to support this. Would you mind filing a jira on Immutant (https://issues.jboss.org/browse/IMMUTANT) requesting JobStore support?

For component support, are you wanting a way to stop/start the scheduler without having to unshedule the jobs? Can you file a jira for that as well?

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

No branches or pull requests

2 participants