update factory activity
only flag non-terminal states
jobcount for factory
jobcount for factory
update