You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
public class OmsWorkerFileUtils {
private static final String USER_HOME = System.getProperty("user.home", "powerjob");
private static final String WORKER_DIR = USER_HOME + "/powerjob/";
public static String getScriptDir() {
return WORKER_DIR + "script/";
}
public static String getContainerDir() {
return WORKER_DIR + "container/";
}
public static String getH2Dir() {
return WORKER_DIR + "h2/";
}
}
The working directory of the project is set to ${user.home}/powerjob/h2,and the database file name is always powerjob_worker_db.mv.db. So I am wondering if I deploy multiple workers for different works on the same machine, would any conflicts occur?
Describe the solution you'd like
Powerjob worker automatically reads spring.application.name from application.properties?
Describe alternatives you've considered
Generate different paths for different projects, or read path from application.properties, or set different names for different databases?
Additional context
Many thanks!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The working directory of the project is set to
${user.home}/powerjob/h2
,and the database file name is always powerjob_worker_db.mv.db. So I am wondering if I deploy multiple workers for different works on the same machine, would any conflicts occur?Describe the solution you'd like
Powerjob worker automatically reads spring.application.name from application.properties?
Describe alternatives you've considered
Generate different paths for different projects, or read path from application.properties, or set different names for different databases?
Additional context
Many thanks!
The text was updated successfully, but these errors were encountered: