Hello,
1) The task.queue.da is a valid file. The reason we use it is because it will only have the "diradmin" user permssion on it. The task.queue can have root, thus any diradmin processes wouldn't be able to write to it, thus we created a second file for diradmin related things, like diradmin cronjobs.
2) The missing task.queue.da file is actually normal. The reason the chmod cannot see it is because the cronjob is run exactly on the minute. The dataskq is also run exactly on the minute, so the task.queue.da file is create at the same moment the dataskq runs.. the dataskq then reads it, renames it to task.queue.da.tmp to process it. Then a fraction of a second later the chmod happens. We do the chmod for the case that the dataskq didn't see it right away, so that we're sure that it's not chmod to a world readable value. This ensure the file is either deleted/renamed instantly by the dataskq, or chmod to 600, so that the world can't see it. Either way, it's secure. I could move the diradmin cronjobs to be run at 30 seconds by starting off the echo with a "sleep 30;", so that it only ever happens one way.
John