ijunaid8989 / extractor Goto Github PK
View Code? Open in Web Editor NEWSnapshot Extractor
License: MIT License
Snapshot Extractor
License: MIT License
Optimize more! while collecting all files. Instead of checking hours and days
Can we use ansible for any cause?
In case of failure: Monitor the job, In case if it failed then send email about failure.
Update snapshot extractor to the lates version of Phoenix and Elixir 1.5.1
extractor/lib/snapshot/snap_extractor.ex
Line 104 in d4318c6
Can be rewritten into:
def handle({:ok, something})
Same for this:
extractor/lib/snapshot/snap_extractor.ex
Line 191 in d4318c6
extractor/lib/snapshot/snap_extractor.ex
Line 199 in d4318c6
Elixir has nice built in Logger. It will perform better.
https://hexdocs.pm/logger/Logger.html
It has many more advantages like compile time optimization and it has separate process.
with
was designed to enable agregation of ingredients
for what it returns. It can be rewritten as simply.
with
{:ok, data} when is_something(data) do
whatever
end
2017-03-09T15:06:17.384540+00:00 app[web.1]: 15:06:17.383 [error] Task #PID<0.2611.0> started from Quantum terminating
2017-03-09T15:06:17.384543+00:00 app[web.1]: ** (CaseClauseError) no case clause matching: {:ok, %HTTPoison.Response{body: "{\"error\":\"Get http://88.99.48.9:8080/32788,c2cff08bd3729b47: dial tcp 88.99.48.9:8080: getsockopt: connection refused\"}", headers: [{"Content-Type", "application/json"}, {"Date", "Thu, 09 Mar 2017 15:06:17 GMT"}, {"Content-Length", "119"}], status_code: 500}}
2017-03-09T15:06:17.384544+00:00 app[web.1]: (extractor) lib/snapshot/snap_extractor.ex:138: Extractor.SnapExtractor.do_loop/6
2017-03-09T15:06:17.384545+00:00 app[web.1]: (elixir) lib/enum.ex:651: Enum."-each/2-lists^foreach/1-0-"/2
2017-03-09T15:06:17.384546+00:00 app[web.1]: (elixir) lib/enum.ex:651: Enum.each/2
2017-03-09T15:06:17.384547+00:00 app[web.1]: (extractor) lib/snapshot/snap_extractor.ex:59: anonymous fn/8 in Extractor.SnapExtractor.extract/1
2017-03-09T15:06:17.384548+00:00 app[web.1]: (elixir) lib/enum.ex:1628: anonymous fn/3 in Enum.reduce/3
2017-03-09T15:06:17.384549+00:00 app[web.1]: (elixir) lib/range.ex:92: Enumerable.Range.reduce/5
2017-03-09T15:06:17.384549+00:00 app[web.1]: (elixir) lib/enum.ex:1627: Enum.reduce/3
2017-03-09T15:06:17.384550+00:00 app[web.1]: (extractor) lib/snapshot/snap_extractor.ex:53: Extractor.SnapExtractor.extract/1
2017-03-09T15:06:17.384551+00:00 app[web.1]: Function: &Quantum.Executor.execute/2
2017-03-09T15:06:17.384554+00:00 app[web.1]: Args: [{"*/2 * * * *", {"Extractor.StartExtractor", "start"}, [], :utc}, %{d: {2017, 3, 9}, h: 14, jobs: [snapshot_extraction: %Quantum.Job{args: [], name: :snapshot_extraction, nodes: [:nonode@nohost], overlap: false, pid: #PID<0.2610.0>, schedule: "*/2 * * * *", state: :active, task: {"Extractor.StartExtractor", "start"}, timezone: :
An option to [ ] Export to PDF which will place the images on to a PDF template. This is in order to print flipbooks.
Can we specify the hours on which there was no image??
missing hours
https://hexdocs.pm/ecto/Ecto.Changeset.html#cast/4
cast/4
changed a bit, please put all updateable fields in 3rd param.
Usually it is a good idea to split that giant function into smaller pieces.
Pieces like these:
extractor/lib/snapshot/snap_extractor.ex
Line 36 in d4318c6
They exist only for side effects and will form nice separate functions.
Right now extractions wait for one to complete, can they run parallel?
Hi @ijunaid8989 ,, I'm a graphic designer and an open source enthusiast. I'd like to contribute to your project by proposing a logo design and I've designed logos for your project. If you have an idea please share with me, it would be better for me. Best Regard.
https://github.com/evercam/evercam-admin/issues/256
show default on schedule
make schedule full height
Can we give some styles to Email templates!
Save as a .json the instructions for that extract in the folder
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.