fix publication for direct stageout
make max_retries, job_id and retry_count's integers instead of strings; increase max_retries by 3 instead of 10 for each resubmission
Merge pull request #4600 from AndresTanasijczuk/fix_publication

Fix publication