-
Notifications
You must be signed in to change notification settings - Fork 3
Commits on Apr 17, 2020
-
test_mx_util: Test mx_strvec functions used by daemon
The only two functions from the mx_strvec familiy which are used by mxqd and mxqsub have no tests currently. Add test.
Configuration menu - View commit details
-
Copy full SHA for 35e6314 - Browse repository at this point
Copy the full SHA 35e6314View commit details -
test_mx_util: Remove mx_strvec cache test
Remove test for a "cache bug", as we are going to remove the mx_strvec cache feature in the next commit.
Configuration menu - View commit details
-
Copy full SHA for d954e89 - Browse repository at this point
Copy the full SHA d954e89View commit details -
mx_util: Remove mx_strvec cache
The idea of the cache was to store the address and the number of the elements of a single vector in variables each time the length was determined. However, this aliases the pointer to the string vector owned by the user. If the users free()s his pointer to the vector, the cached pointer becomes invalid. An approach would be to require the user to always use a library routine to free the vector. This library routine would need to invalidate the static alias pointer, too. However, the assumed performance win doesn't seem worth the complexity. Remove the cache code.
Configuration menu - View commit details
-
Copy full SHA for 102f936 - Browse repository at this point
Copy the full SHA 102f936View commit details -
mxqd: Don't try to unmount noexisting job tmpdir
Only unmount and remove job temporary directories for jobs, which actually requested on to avoid meaningless warnings in the logfile.
Configuration menu - View commit details
-
Copy full SHA for 5a07c9e - Browse repository at this point
Copy the full SHA 5a07c9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ca06e - Browse repository at this point
Copy the full SHA 76ca06eView commit details -
We'd like to have a daemon flag, namely "exclusive". This flag should be published by the daemon into the database, so that is visible to the web interface. Although we currently need only a single boolean flag, make it a integer, so that we can add more flags at a later time without changing the database scheme.
Configuration menu - View commit details
-
Copy full SHA for 9c895a2 - Browse repository at this point
Copy the full SHA 9c895a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d93744f - Browse repository at this point
Copy the full SHA d93744fView commit details -
Configuration menu - View commit details
-
Copy full SHA for da1f32c - Browse repository at this point
Copy the full SHA da1f32cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 290468e - Browse repository at this point
Copy the full SHA 290468eView commit details -
mxqd.c: Add --exclusive option
When a daemon is started, with --exclusive it will set daemon_flags to 1 to indicate, that it is running in exclusive mode. In exclusive mode, the daemon should only start jobs which have an implicit whitelist (`mxqsub --whitelist`) which includes the daemons name. This is implemented in the next commit.
Configuration menu - View commit details
-
Copy full SHA for d80198d - Browse repository at this point
Copy the full SHA d80198dView commit details -
mxqd.c: Require whitelist on exclusive daemon
If the daemon was stared with `--exclusive`, only start jobs which have the daemon in their whitelist.
Configuration menu - View commit details
-
Copy full SHA for 0c22c65 - Browse repository at this point
Copy the full SHA 0c22c65View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.