'Duty' in the Bible
They spent the night in the vicinity of God’s temple, because they had guard duty and were in charge of opening it every morning.
The singers, the heads of the Levite families, stayed in the temple chambers and were exempt from other tasks because they were on duty day and night.
“but their duty will be to assist the sons of Aaron with the service of the Lord’s temple, being responsible for the courts and the chambers, the purification of all the holy things, and the work of the service of God’s temple—
This is the list of the Israelites, the heads of families, the commanders of thousands and the commanders of hundreds, and their officers who served the king in every matter to do with the divisions that were on rotated military duty each month throughout the year. There were 24,000 in each division: