Story #5028

Updated by bmbouter over 3 years ago

Docker push requires creating a repository version without dispatching a task. This is currently impossible because the RepositoryVersion.create() method always creates a CreatedResource[0]. A CreatedResource requires a task_id to be saved to the database.  

 h3. Solution 

 Have A possible solution would add an optional keyword parameter to the RepositoryVersion.create() check if it's running inside a task. You can easily do that with Task.current [1]. 


 create() method. This argument would be called 'in_task'. It would default to True. When 'in_task' is set to False, the CreatedResource would not be created.