{"blog_title":"VTRyo Blog","description":"rake task\u306einvoke \u3053\u3046\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u306erake task\u304c\u3042\u3063\u305f\u3068\u3059\u308b ids = [1,2,3] ids.find_each do |id| Rake::Task['sync_documents'].invoke(id) p === execute id === end \u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068 execute 1\u307e\u3067\u3057\u304b\u5b9f\u884c\u3055\u308c\u305a\u306b\u56f0\u3063\u305f\u3068\u3044\u3046\u8a71\u3002 reenable\u304c\u5fc5\u8981 \u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u3053\u3046\u3002 ids = [1,2,3] ids.find_each do |id| Rake::Task['sync_documents'].invoke(id) Rake::Task['sync_doc\u2026","height":"190","image_url":null,"title":"rake task\u3067\u30eb\u30fc\u30d7\u5185\u306b\u3042\u308binvoke\u304c\u5b9f\u884c\u3055\u308c\u306a\u3044","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.vtryo.me%2Fentry%2Finvoke-cannot-be-executed\" title=\"rake task\u3067\u30eb\u30fc\u30d7\u5185\u306b\u3042\u308binvoke\u304c\u5b9f\u884c\u3055\u308c\u306a\u3044 - VTRyo Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://blog.vtryo.me/","width":"100%","author_name":"vtryo","url":"https://blog.vtryo.me/entry/invoke-cannot-be-executed","provider_url":"https://hatena.blog","published":"2021-06-17 13:52:00","categories":["ruby"],"author_url":"https://blog.hatena.ne.jp/vtryo/","type":"rich","version":"1.0"}