#1346: fix macro running after metadata refresh
Merge pull request #1384 from benfitzpatrick/1346.macro-problem-metadata-refresh

#1346: fix macro running after metadata refresh
Fix tests for cylc/cylc#1118

Now submit outputs are in the job activity log.
Merge pull request #1389 from matthewrmshin/cylc-1118

Fix tests for cylc/cylc#1118