Comments (5)
I run into this issue too.
A simple solution could be to add an option for the lock file directory.
Currently this makes jobby unusable at shared hosts.
from jobby.
I think the assumption is that there is only a single app/website running on a machine. So there is only a single user that needs to run jobby. I could see this as a problem in a shared host environment, or if a machine is hosting multiple PHP apps.
The solution would not to be to open permissions on the lock file. The lock file name would have to differ among users so multiple lock files could exist at the same time.
from jobby.
Any updates ?
from jobby.
Currently I use a workarround right before initializing jobby:
ini_set('sys_temp_dir', '/path/to/users/temp/dir');
from jobby.
Any updates? I'm having the same issue on shared hosting. A solution would be to namespace the lock files with a unique namespace. The namespace could be configurable through one of the options passed to the Jobby constructor. It could default to ''
in order to keep backwards compatibility.
EDIT
I'm looking at the source files and I found the following code:
/**
* @return string
*/
protected function getLockFile()
{
$tmp = $this->tmpDir;
$job = $this->helper->escape($this->job);
if (!empty($this->config['environment'])) {
$env = $this->helper->escape($this->config['environment']);
return "$tmp/$env-$job.lck";
} else {
return "$tmp/$job.lck";
}
}
It seems that it is already implemented. The lock files are prefixed with the namespce defined by the environment
setting.
from jobby.
Related Issues (20)
- DateTimeImmutable and PHP Version HOT 1
- possibility to change lockfile location HOT 2
- is there any way to kill all jobs running in jobby at a point of time? HOT 2
- how i can run in cloud foundry buildpack
- two jobs be executed at the same minute
- Not executing with Symfony Process 3.3.6
- How to build it from source
- Check if a cron is enabled or not? HOT 1
- Package mtdowling/cron-expression is abandoned
- run command using zsh or bash shell? HOT 2
- Is this project abandoned? HOT 2
- Question: How can I get a persistent jobby logfile
- Not working with Symfony Process 5.1.2 on PHP 7.3
- Adding 'nice' process priority parameter to jobs
- Extract Swift mailer capability to new package HOT 6
- Warning: exec() has been disabled for security reasons
- Does this library support catch-up like anacron/fcron?
- Does this library support system load average thresholds like fcron?
- putting the lck file outside the server ( redis or mysql / GCP, AWS)
- Parameter to set location of debug.log
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobby.