Bring sugar, vinegar, celery seed, turmeric, mustard, and mustard seeds to a boil in a saucepan; pour the mixture over the zucchini and onions. Let the mixture stand for at least 2 more hours. Return zucchini, onions, and pickling liquid with spices to a large pot and bring to a boil. Boil for 3 minutes.