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

Run specific jobs INSIDE the main process #54

Closed
lamemind opened this issue Mar 24, 2016 · 1 comment
Closed

Run specific jobs INSIDE the main process #54

lamemind opened this issue Mar 24, 2016 · 1 comment

Comments

@lamemind
Copy link

I'd like to tell jobby to invoke my closure directly inside the main process - when calling $jobby->run() to be clear.
That way I can use the same environment, w/o the need to spawn a new process

@hellogerard
Copy link
Member

The idea with Jobby is that the main process is just a "controller" for your actual jobs. If it did run jobs, it also might block if the job takes a long time.

Usually, you can set up your environment by importing some sort of bootstrap or environment file in your job, same as you would on a web request. Does that help?

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

2 participants