-
Notifications
You must be signed in to change notification settings - Fork 3
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
allow re-running #26
allow re-running #26
Conversation
Also, note that this does not cope with re-entering the same job again (which would also make it re-use the Controller-side |
@bertsky Should we create a make target to delete files of WORKDIR of Manager or Controller? Or should we add a parameter to force deleting WORKDIRS before processing? |
But thinking about it, it may at least help to name |
No, I wouldn't do that via makefile. There's a to-do in the comments to cron-schedule the removal on the Controller, which should suffice. And for the Manager, the same mechanism that removes finished process data should also be responsible for the |
I think the |
It's not in the "scope" of the Controller, though. It's the Manager's choice. The Controller just gets a path name (ideally not conflicting with anything else). And I think that having |
Ok that is a good point. I have to think about this a bit more because tasks can be deleted etc. but for the moment it sounds like the best way. |
@@ -58,7 +58,7 @@ init() { | |||
logger -p user.error -t $TASK "insufficient permissions on /data volume" | |||
exit 5 | |||
fi | |||
REMOTEDIR="KitodoJob${PID}_$(basename $PROCESS_DIR)" | |||
REMOTEDIR="KitodoJob_${PROCESS_ID}_${TASK_ID}_$(basename $PROCESS_DIR)" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest rename to KitodoProductionJob to distinguish between "Kitodo.Presentation" later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? The directory name should not be used for provenance. If such information is needed, we should rather annotate directly in the METS.
(Also, I'd rather like to reduce Production-specific settings in ocrd_lib.sh
...)
Fixes slub/ocrd_kitodo#17
Note that due to OCR-D/core#825 this still does not work completely, but there's nothing we can do about that on our side.